* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c2e 0%, #1a1a3e 50%, #0c0c2e 100%);
    color: #e0e0ff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(41, 196, 255, 0.1);
    border-top: 4px solid #29c4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(41, 196, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #29c4ff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(41, 196, 255, 0.8);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(41, 196, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(132, 0, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 20px 20px 20px;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.login-box {
    background: rgba(16, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    background: linear-gradient(90deg, #00ffff, #66aaff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-box button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-box button:hover {
    transform: scale(1.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(16, 18, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    min-height: 80px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #0080ff, #00ffff);
    background-size: 200% 100%;
    animation: headerGlow 3s infinite linear;
}

@keyframes headerGlow {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

header h1 {
    font-size: 24px;
    background: linear-gradient(90deg, #00ffff, #66aaff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.controls {
    background: rgba(16, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
}

.control-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.control-group select,
.control-group input {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

.control-group select option {
    background: #0d47a1;
    color: #000;
}

.control-group button,
#exportBtn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.control-group button:hover,
#exportBtn:hover {
    transform: scale(1.05);
}

.ranking-panel,
.records-panel {
    background: rgba(16, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
    position: relative;
    z-index: 1;
}

.main-content-grid > .ranking-panel,
.main-content-grid > .records-panel {
    margin-bottom: 0;
    height: fit-content;
}

.main-content-grid > .records-panel #recordsList {
    max-height: 600px;
    overflow-y: auto;
}

.ranking-panel h2,
.records-panel h2 {
    margin-bottom: 20px;
    font-size: 22px;
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

.top-three {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
}

.top-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    position: relative;
}

.top-rank:hover {
    transform: translateY(-10px);
}

.top-rank-1 {
    order: 2;
    width: 200px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.top-rank-2 {
    order: 1;
    width: 180px;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(128, 128, 128, 0.3));
    border: 3px solid #C0C0C0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.top-rank-3 {
    order: 3;
    width: 180px;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(139, 69, 19, 0.3));
    border: 3px solid #CD7F32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.crown {
    font-size: 48px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.top-rank-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.top-rank-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.top-rank-score {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
}

.other-rankings {
    margin-top: 20px;
}

.student-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 10px 0;
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    align-items: center;
    justify-items: center;
    gap: 15px;
    transition: all 0.3s;
    position: relative;
    border-left: 4px solid transparent;
}

.student-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

.student-card.rank-4 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.2);
    border: 2px solid rgba(25, 118, 210, 0.5);
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.3);
}
.student-card.rank-5 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.18);
    border: 2px solid rgba(25, 118, 210, 0.45);
    box-shadow: 0 0 12px rgba(25, 118, 210, 0.25);
}
.student-card.rank-6 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.16);
    border: 2px solid rgba(25, 118, 210, 0.4);
    box-shadow: 0 0 10px rgba(25, 118, 210, 0.2);
}
.student-card.rank-7 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.14);
    border: 2px solid rgba(25, 118, 210, 0.35);
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.18);
}
.student-card.rank-8 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.12);
    border: 2px solid rgba(25, 118, 210, 0.3);
    box-shadow: 0 0 6px rgba(25, 118, 210, 0.15);
}
.student-card.rank-9 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
    border: 2px solid rgba(25, 118, 210, 0.25);
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.12);
}
.student-card.rank-10 {
    border-left-color: #1976d2;
    background: rgba(25, 118, 210, 0.08);
    border: 2px solid rgba(25, 118, 210, 0.2);
    box-shadow: 0 0 4px rgba(25, 118, 210, 0.1);
}

.student-info {
    display: contents;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.student-name {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.student-score {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    font-size: 24px;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
    font-size: 22px;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.6);
    font-size: 22px;
}

.rank-top10 {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    box-shadow: 0 0 10px rgba(25, 118, 210, 0.6);
}

.rank-normal {
    background: rgba(255, 255, 255, 0.2);
}

.student-name {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.student-score {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
    max-width: 300px;
    font-size: 14px;
    display: none;
}

.tooltip.show {
    display: block;
}

.record-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-actions button {
    padding: 6px 12px;
    margin-left: 5px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.record-actions button {
    padding: 6px 12px;
    margin-left: 5px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

/* Left operation sidebar */
.operation-sidebar {
    position: fixed;
    left: 25%;
    top: 140px;
    width: 50%;
    padding: 0 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 900;
}

.operation-section, .action-section {
    background: rgba(16, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
    margin-bottom: 15px;
}

.operation-section h3, .action-section h3 {
    margin-bottom: 15px;
    color: #64b5f6;
}

/* Main content area - right side - 25% width */
.main-content {
    position: fixed;
    right: 0;
    top: 140px;
    width: 25%;
    padding: 0 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.recent-operations, .records-panel {
    background: rgba(16, 18, 46, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.3);
    border: 1px solid rgba(64, 224, 255, 0.2);
    margin-bottom: 20px;
}

.recent-operations h3, .records-panel h3 {
    margin-bottom: 15px;
    color: #64b5f6;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(64, 224, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: rgba(64, 224, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.select-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.select-controls select,
.select-controls button,
.select-controls input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.select-controls input[type="text"] {
    flex: 1;
    min-width: 150px;
}

.select-controls input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.select-controls select option {
    background: #0d47a1;
    color: #000;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.student-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.student-item.selected {
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    border-color: #64b5f6;
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.6);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #64b5f6;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add, .btn-deduct {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-add {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.btn-deduct {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.btn-add:hover, .btn-deduct:hover {
    transform: scale(1.05);
}

.selected-info {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    color: #64b5f6;
}

.recent-item {
    padding: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #1976d2;
}

.recent-item.add {
    border-left-color: #4caf50;
}

.recent-item.deduct {
    border-left-color: #f44336;
}

@media (max-width: 768px) {
    .management-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .operation-sidebar {
        position: static;
        width: 100%;
        transform: none;
        margin-bottom: 20px;
    }

    .main-content {
        position: static;
        width: 100%;
    }

    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
    .container {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 18px;
    }

    .control-group {
        flex-direction: column;
    }

    .control-group select,
    .control-group input {
        width: 100%;
    }

    .student-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .student-info {
        flex-direction: column;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a5e 100%);
    position: absolute;
    top: 80px;
    right: 20px;
    padding: 30px;
    border: 2px solid rgba(132, 0, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 0 30px rgba(132, 0, 255, 0.5);
}

.modal-content h2 {
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(132, 0, 255, 0.3);
    border-radius: 8px;
    color: #e0e0ff;
    font-size: 16px;
}

.modal-content input::placeholder {
    color: rgba(224, 224, 255, 0.5);
}

.modal-content button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #8400ff 0%, #6200cc 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(132, 0, 255, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .user-info {
        flex-direction: column;
        gap: 5px;
    }

    .user-info button {
        font-size: 12px;
        padding: 8px 12px;
    }

    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ranking-panel, .records-panel {
        padding: 15px;
    }

    .top-three {
        flex-direction: column;
        gap: 15px;
    }

    .top-rank {
        width: 100%;
    }

    .student-card {
        padding: 10px 15px;
        grid-template-columns: 40px 1fr 80px;
        gap: 10px;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .student-name {
        font-size: 16px;
    }

    .student-score {
        font-size: 18px;
    }

    .modal-content {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 320px;
    }

    .record-item {
        padding: 12px;
        font-size: 14px;
    }
}

/* Login button styles */
.login-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1300;
}

.login-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

.login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.login-button.active .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.login-form {
    background: rgba(16, 18, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.5);
    border: 1px solid rgba(64, 224, 255, 0.3);
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-form button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-form button:hover {
    transform: scale(1.05);
}

.user-info.hidden {
    display: none;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.logout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .login-button {
        top: 15px;
        right: 15px;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .login-dropdown {
        width: 260px;
    }

    .management-sidebar {
        top: 70px;
        right: 10px;
        width: 250px;
        max-height: calc(100vh - 80px);
    }

    .password-btn,
    .person-btn,
    .dorm-btn,
    .reset-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .password-dropdown,
    .person-dropdown,
    .dorm-dropdown,
    .reset-dropdown {
        width: 100%;
    }
}

/* Left management sidebar - 25% width */
.management-sidebar {
    position: fixed;
    top: 140px;
    left: 0;
    width: 25%;
    padding: 0 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.password-button,
.person-button,
.dorm-button,
.reset-button {
    position: relative;
    width: 100%;
}

.password-btn,
.person-btn,
.dorm-btn,
.reset-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    text-align: left;
}

.password-btn:hover,
.person-btn:hover,
.dorm-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

.password-dropdown,
.person-dropdown,
.dorm-dropdown,
.reset-dropdown {
    margin-top: 10px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-button.active .password-dropdown,
.person-button.active .person-dropdown,
.dorm-button.active .dorm-dropdown,
.reset-button.active .reset-dropdown {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
}

.password-form,
.person-form,
.dorm-form,
.reset-form {
    background: rgba(16, 18, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 10, 60, 0.5);
    border: 1px solid rgba(64, 224, 255, 0.3);
}

.password-form h4,
.person-form h4,
.dorm-form h4,
.reset-form h4 {
    margin: 0 0 15px 0;
    color: #64b5f6;
    font-size: 16px;
}

.password-form input,
.password-form select,
.person-form input,
.person-form select,
.dorm-form input,
.dorm-form select,
.reset-form input,
.reset-form select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
}

.password-form input::placeholder,
.person-form input::placeholder,
.dorm-form input::placeholder,
.reset-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-form select option,
.person-form select option,
.dorm-form select option,
.reset-form select option {
    background: #0d47a1;
    color: #fff;
}

.password-form button,
.person-form button,
.dorm-form button,
.reset-form button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.password-form button:hover,
.person-form button:hover,
.dorm-form button:hover,
.reset-form button:hover {
    transform: scale(1.05);
}
