/* 适合老年人的使用的大按钮样式 */
body {
    font-size: 18px;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.btn-main {
    height: 120px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.course-btn {
    width: 200px;
    height: 80px;
    font-size: 1.2rem;
    margin: 10px;
    border-radius: 10px;
}

/* 学生卡片优化样式 */
.student-card {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.student-info {
    font-size: 1.2rem;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.student-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.student-phone {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* 剩余课时样式优化 */
.remaining-lessons {
    font-size: 1.4rem;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.remaining-lessons.lessons-warning {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.lessons-warning {
    color: #dc3545;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.lessons-ok {
    color: #28a745;
    font-weight: 600;
}

/* 按钮样式优化 */
.checkin-btn {
    width: 90px;
    height: 45px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.checkin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.makeup-btn {
    width: 90px;
    height: 45px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.makeup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 续费按钮优化 */
.btn-success.btn-sm {
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 卡片边框优化 */
.card {
    border-radius: 8px; /* 调整为更小的圆角 */
    border: 1px solid rgba(0,0,0,0.125); /* 恢复默认边框 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 减少阴影 */
    transition: all 0.2s ease; /* 调整过渡效果 */
}
/*    border: none;*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.08);*/
/*    transition: all 0.3s ease;*/
/*}*/

.card.border-danger {
    border: 2px solid #dc3545;
    box-shadow: 0 2px 15px rgba(220, 53, 69, 0.2);
}

.card.border-success {
    border: 2px solid #28a745;
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.2);
}

.alert {
    font-size: 1.1rem;
    border-radius: 10px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 手机端适配 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .btn-main {
        font-size: 1.3rem;
        height: 100px;
    }
    
    .student-info {
        padding: 15px;
    }
    
    .student-name {
        font-size: 1.3rem;
    }
    
    .remaining-lessons {
        font-size: 1.1rem;
    }
    
    .checkin-btn {
        width: 100px;
        height: 50px;
        font-size: 1rem;
    }
}

/* 表单样式 */
.form-control {
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
}

.form-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #495057;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 数据表格 */
.table {
    font-size: 1.1rem;
}

.table th {
    background-color: #e9ecef;
    font-weight: bold;
    padding: 15px;
}

.table td {
    padding: 15px;
}

/* 搜索框样式优化 */
#courseSearchInput {
    width: 250px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#courseSearchInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* 课程计数徽章样式 */
#courseCount {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 15px;
    min-width: 80px;
    text-align: center;
}

/* 课程卡片悬停效果 */
/* 移除课程卡片特定样式 */
/*
.course-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
*/

/* 搜索无结果提示样式 */
#noResultsMessage {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 统计信息样式 */
.badge.bg-info {
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 管理员首页管理卡片样式 */
.admin-card {
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
    text-decoration: none !important;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* 教师管理卡片样式 */
.teacher-card {
    background-color: #f8d7da;
    color: #721c24;
}

/* 学生管理卡片样式 */
.student-card {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 课程管理卡片样式 */
.course-card {
    background-color: #d4edda;
    color: #155724;
}

/* 图标样式 */
.card-icon {
    font-size: 2rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.admin-card:hover .card-icon {
    transform: scale(1.05);
    opacity: 1;
}

/* 标题和描述样式 */
.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.card-description {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 确保链接没有下划线 */
.admin-card:hover .card-title,
.admin-card:hover .card-description {
    text-decoration: none !important;
}

/* 管理员后台五区域布局样式 */
.dashboard-section {
    margin-bottom: 1.5rem;
}

.dashboard-section .card-header {
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* 渐变按钮美化样式 */
.btn-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-gradient-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-gradient-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #e55a00 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-gradient-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-gradient-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #343a40 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-gradient-dark {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.3);
}

.btn-gradient-dark:hover {
    background: linear-gradient(135deg, #23272b 0%, #16181b 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.4);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #520dc2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-gradient-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-gradient-purple:hover {
    background: linear-gradient(135deg, #59359a 0%, #c42e6a 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.btn-gradient-indigo {
    background: linear-gradient(135deg, #6610f2 0%, #007bff 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.3);
}

.btn-gradient-indigo:hover {
    background: linear-gradient(135deg, #520dc2 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 16, 242, 0.4);
}

/* 管理员功能菜单美化样式 */
.admin-menu-btn {
    height: 110px;
    border-radius: 16px;
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    padding: 15px 10px;
    transform: perspective(1px) translateZ(0);
}

.admin-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.admin-menu-btn:hover::before {
    left: 100%;
}

.admin-menu-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.admin-menu-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.admin-menu-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.admin-menu-btn:hover .admin-menu-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(5deg) scale(1.1);
}

.admin-menu-text {
    text-align: center;
    flex-grow: 1;
}

.admin-menu-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-menu-desc {
    opacity: 0.9;
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
    font-weight: 500;
}

/* 数据展示区域样式 */
.dashboard-section .bg-primary,
.dashboard-section .bg-success,
.dashboard-section .bg-info,
.dashboard-section .bg-warning {
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-section .bg-primary:hover,
.dashboard-section .bg-success:hover,
.dashboard-section .bg-info:hover,
.dashboard-section .bg-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 提醒区域样式优化 */
.dashboard-section .alert {
    border-radius: 10px;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表格样式优化 */
.dashboard-section .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
    transform: scale(1.002);
    transition: all 0.2s ease;
}

.dashboard-section .badge {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
}

/* 卡片标题图标间距 */
.dashboard-section .card-header i {
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.2rem;
    }
    .card-icon {
        font-size: 2rem;
    }
    
    /* 移动端按钮调整 */
    .dashboard-section .btn-lg {
        height: 50px;
        font-size: 1rem;
    }
    
    /* 移动端数据卡片调整 */
    .dashboard-section .h1 {
        font-size: 2rem;
    }
    
    /* 移动端表格优化 */
    .dashboard-section .table-responsive {
        font-size: 0.9rem;
    }
}
