* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    min-height: 100vh;
    color: #e0e7ff;
    position: relative;
    overflow-x: hidden;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 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(0, 255, 255, 0.1);
    border-top: 4px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 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(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2), 0 0 60px rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    background: linear-gradient(90deg, #00ffff, #0096ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.login-box select,
.login-box input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 50, 100, 0.3);
    color: #e0e7ff;
    font-size: 16px;
    transition: all 0.3s;
}

.login-box select:focus,
.login-box input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.login-box select option {
    background: #0a0e27;
    color: #e0e7ff;
}

.login-box input::placeholder {
    color: rgba(224, 231, 255, 0.5);
}

.login-box button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0096ff 0%, #00ffff 100%);
    color: #0a0e27;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

header h1 {
    background: linear-gradient(90deg, #00ffff, #0096ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info button {
    padding: 10px 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 50, 100, 0.3);
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s;
}

.user-info button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 50, 100, 0.3);
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(0, 255, 255, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #0096ff 0%, #00ffff 100%);
    color: #0a0e27;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.ranking-container {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.top-three {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.rank-card {
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.5), rgba(0, 30, 60, 0.5));
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.rank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rank-card.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

.rank-card.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.6);
}

.rank-card.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.6);
}

.rank-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px currentColor;
}

.rank-number {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.student-name {
    font-size: 20px;
    margin: 10px 0;
}

.student-score {
    font-size: 18px;
    opacity: 0.9;
}

.other-rankings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.rank-item {
    background: rgba(0, 50, 100, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s;
}

.rank-item.rank-top10 {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3), rgba(0, 255, 255, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.rank-item:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.rank-item.rank-top10:hover {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-badge {
    background: linear-gradient(135deg, #0096ff 0%, #00ffff 100%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0a0e27;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.rank-badge.rank-badge-top10 {
    background: linear-gradient(135deg, #00ffff 0%, #00ff88 100%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    font-size: 18px;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.manage-panel {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.manage-panel h2 {
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.subject-section {
    margin-bottom: 30px;
}

.subject-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #0096ff;
}

.subject-item {
    background: rgba(0, 50, 100, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.subject-item button {
    padding: 5px 15px;
    border: 1px solid rgba(255, 0, 100, 0.5);
    border-radius: 5px;
    background: rgba(255, 0, 100, 0.2);
    color: #ff0064;
    cursor: pointer;
    transition: all 0.3s;
}

.subject-item button:hover {
    background: rgba(255, 0, 100, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.5);
}

.add-subject {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-subject input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 50, 100, 0.3);
    color: #e0e7ff;
}

.add-subject input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.add-subject button,
.add-student button,
.manage-panel > button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0096ff 0%, #00ffff 100%);
    color: #0a0e27;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.add-subject button:hover,
.add-student button:hover,
.manage-panel > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

.add-student {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-student input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 50, 100, 0.3);
    color: #e0e7ff;
}

.add-student input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

#studentsList {
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    background: rgba(0, 50, 100, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.manage-panel select,
.manage-panel input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 50, 100, 0.3);
    color: #e0e7ff;
}

.manage-panel select:focus,
.manage-panel input[type="number"]:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.manage-panel select option {
    background: #0a0e27;
    color: #e0e7ff;
}

@media (max-width: 768px) {
    .top-three {
        flex-direction: column;
        align-items: center;
    }

    .rank-card.rank-1 {
        transform: scale(1);
    }

    .manage-grid {
        grid-template-columns: 1fr;
    }
}

/* 修改密码模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3), 0 0 60px rgba(0, 150, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    background: linear-gradient(90deg, #00ffff, #0096ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-content .close:hover {
    color: #ff0064;
    text-shadow: 0 0 15px rgba(255, 0, 100, 0.8);
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-size: 14px;
}

.modal-content .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 50, 100, 0.3);
    color: #e0e7ff;
    font-size: 16px;
    transition: all 0.3s;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.modal-content .form-group input::placeholder {
    color: rgba(224, 231, 255, 0.5);
}

.modal-content button {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0096ff 0%, #00ffff 100%);
    color: #0a0e27;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
}

/* ============================================
   移动端响应式优化
   ============================================ */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }

    header h1 {
        font-size: 22px;
    }

    .tabs {
        padding: 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .top-three {
        padding: 20px;
        gap: 15px;
    }

    .rank-card {
        padding: 20px;
        min-height: 200px;
    }
}

/* 手机设备 (最大宽度 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* 头部优化 */
    header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    header h1 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 0;
    }

    .user-info {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .user-info select,
    .user-info button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* 标签页优化 */
    .tabs {
        padding: 10px;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 排名容器优化 */
    .ranking-container {
        padding: 10px;
    }

    /* 前三名卡片 - 单列显示 */
    .top-three {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .rank-card {
        width: 100%;
        min-height: auto;
        padding: 20px 15px;
    }

    .rank-card.rank-1 {
        order: 1;
    }

    .rank-card.rank-2 {
        order: 2;
    }

    .rank-card.rank-3 {
        order: 3;
    }

    .rank-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .rank-number {
        font-size: 48px;
        margin: 8px 0;
    }

    .student-name {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .student-score {
        font-size: 16px;
    }

    /* 其他排名优化 */
    .other-rankings {
        padding: 0;
    }

    .rank-item {
        padding: 15px;
        margin-bottom: 10px;
        flex-direction: row;
        gap: 12px;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .rank-badge-top10 {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .rank-info {
        gap: 12px;
        flex: 1;
        align-items: center;
    }

    /* 登录页面优化 */
    .login-box {
        width: calc(100% - 30px);
        padding: 30px 20px;
        margin: 15px;
    }

    .login-box h1 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .login-box input,
    .login-box select,
    .login-box button {
        padding: 12px;
        font-size: 15px;
    }

    /* 模态框优化 */
    .modal-content {
        width: calc(100% - 30px);
        padding: 25px 20px;
        margin: 15px;
    }

    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .modal-content .form-group input {
        padding: 10px;
        font-size: 14px;
    }

    .modal-content button {
        padding: 12px;
        font-size: 16px;
    }

    /* 加载动画优化 */
    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 16px;
    }
}

/* 小屏手机设备 (最大宽度 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    header h1 {
        font-size: 16px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .rank-card {
        padding: 15px 10px;
    }

    .rank-number {
        font-size: 36px;
    }

    .student-name {
        font-size: 18px;
    }

    .student-score {
        font-size: 14px;
    }

    .rank-item {
        padding: 12px;
        font-size: 13px;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .login-box {
        padding: 25px 15px;
    }

    .login-box h1 {
        font-size: 20px;
    }

    .modal-content h2 {
        font-size: 18px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .tab-btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    .user-info button {
        min-height: 44px;
        padding: 12px;
    }

    .rank-item {
        min-height: 60px;
    }

    /* 移除hover效果，使用active效果 */
    .tab-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
    }

    button:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 255, 255, 0.4);
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 8px 15px;
    }

    header h1 {
        font-size: 16px;
    }

    .ranking-container {
        padding: 8px;
    }

    .top-three {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rank-card {
        width: calc(33.333% - 10px);
        min-height: auto;
        padding: 15px 10px;
    }

    .rank-number {
        font-size: 32px;
        margin: 5px 0;
    }

    .student-name {
        font-size: 16px;
    }

    .student-score {
        font-size: 13px;
    }
}

/* ============================================
   管理后台移动端优化
   ============================================ */

@media (max-width: 1024px) {
    .manage-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .manage-panel {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .manage-grid {
        padding: 10px;
        gap: 12px;
    }

    .manage-panel {
        padding: 15px;
    }

    .manage-panel h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .manage-panel h3 {
        font-size: 16px;
        margin: 15px 0 10px;
    }

    /* 表单输入优化 */
    .manage-panel input,
    .manage-panel select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .manage-panel button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-top: 5px;
    }

    /* 添加学生表单 */
    .add-student {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .add-student input {
        margin-bottom: 0;
    }

    /* 添加科目表单 */
    .add-subject {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .add-subject input {
        margin-bottom: 0;
    }

    .add-subject label {
        margin: 0 !important;
        padding: 8px 0;
    }

    /* 科目项目 */
    .subject-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
        padding: 12px;
    }

    .subject-item button {
        width: 100%;
        margin-top: 5px;
    }

    /* 学生列表项 */
    .student-item {
        padding: 12px;
        font-size: 14px;
    }

    .student-item button {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 学期列表 */
    #semestersList .student-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch !important;
    }

    #semestersList button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .manage-panel h2 {
        font-size: 16px;
    }

    .manage-panel h3 {
        font-size: 15px;
    }

    .manage-panel input,
    .manage-panel select,
    .manage-panel button {
        font-size: 13px;
        padding: 10px;
    }

    .subject-item,
    .student-item {
        padding: 10px;
        font-size: 13px;
    }
}
