/* Glassmorphism base styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Glass Container */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 30px;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.glass-header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.glass-header nav a:hover {
    color: #a8c0ff;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-input:focus {
    border-color: #a8c0ff;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease-in-out;
}

.toast-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.toast-container.error {
    background: rgba(220, 53, 69, 0.8);
    border: 1px solid rgba(220, 53, 69, 1);
}

.toast-container.success {
    background: rgba(40, 167, 69, 0.8);
    border: 1px solid rgba(40, 167, 69, 1);
}

/* Layouts */
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-box {
    width: 350px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Table styles */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.glass-table th, .glass-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-table th {
    background: rgba(255, 255, 255, 0.1);
}

/* Choices.js Glassmorphism Overrides */
.choices__inner {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    min-height: 44px !important;
}
.choices__list--dropdown, .choices__list[aria-expanded] {
    background: rgba(40, 50, 80, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}
.choices__list--dropdown .choices__item--selectable.is-highlighted, 
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.choices__input {
    background: transparent !important;
    color: #fff !important;
}
.choices__input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}
.choices__item {
    color: #fff !important;
}
.choices[data-type*="select-multiple"] .choices__button, 
.choices[data-type*="text"] .choices__button {
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.choices[data-type*="select-multiple"] .choices__inner .choices__item {
    background-color: rgba(0, 128, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
}
