/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #81B1C0;
    --secondary-color: #147F3D;
    --success-color: #147F3D;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #81B1C0;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
}

.hide{
    display: none;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Mobile App Layout */
.mobile-app {
    overflow-x: hidden;
}

/* Top Navigation Bar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.menu-btn, .notification-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
}

.badge-notification-top {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Drawer (Side Navigation) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.drawer-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-avatar i {
    font-size: 2rem;
    color: white;
}

.drawer-header h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.drawer-header p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.drawer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 5px;
    cursor: pointer;
}

.drawer-nav {
    flex: 1;
    padding: 20px 0;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.drawer-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.drawer-item:hover {
    background: #f9fafb;
    color: #81B1C0;
}

.drawer-item.active {
    background: #e6f2f5;
    color: #81B1C0;
    border-left-color: #81B1C0;
}

.drawer-item.logout {
    color: #ef4444;
}

.drawer-item.logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

.drawer-footer {
    border-top: 1px solid #e5e7eb;
    padding: 10px 0;
}

/* Bottom Navigation Bar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    padding: 8px 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-btn.active {
    color: #81B1C0;
}

.nav-btn:hover {
    color: #81B1C0;
    text-decoration: none;
}

/* Main Content for Mobile */
.main-content-mobile {
    margin-top: 60px;
    margin-bottom: 70px;
    min-height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

.content-wrapper-mobile {
    padding: 0;
    background: #f5f7fa;
    width: 100%;
    min-height: 100%;
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    min-height: 100vh;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.2);
    color: white;
    border-left-color: var(--primary-color);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.logout {
    color: #f87171;
}

.nav-item.logout:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
    padding: 0;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    padding: 15px 30px;
    border-bottom: 1px solid #e5e7eb;
}

/* Dashboard Header - New Design */
.dashboard-header-new {
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    color: white;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-greeting {
    flex: 1;
}

.greeting-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.student-info {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.academic-year-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.academic-year-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.profile-avatar-small {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-avatar-small i {
    font-size: 2rem;
    color: white;
}

/* Dashboard Header - Old (keeping for reference) */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-back {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
    padding: 8px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Date Card */
.date-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    margin: 20px 25px;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.date-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-icon i {
    font-size: 1.8rem;
    color: white;
}

.date-info {
    flex: 1;
}

.date-day {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.date-year {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn-today {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-today:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Balance Fee Section */
.balance-fee-section {
    padding: 8px 0;
    background: #f5f7fa;
}

.balance-fee-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.balance-fee-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.balance-fee-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #81B1C0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.balance-fee-icon i {
    font-size: 1.5rem;
    color: white;
}

.balance-fee-content {
    flex: 1;
}

.balance-fee-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.balance-fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #147F3D;
}

.balance-fee-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.balance-fee-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.balance-fee-btn i {
    font-size: 1rem;
}

/* Dashboard Content Area */
.dashboard-content-area {
    padding: 10px 0 20px 0;
    background: #f5f7fa;
}

/* Metrics Grid - 2 items per row */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.metric-icon i {
    font-size: 1.8rem;
    color: white;
}

.metric-icon-yellow {
    background: #fef3c7;
}

.metric-icon-yellow i {
    color: #f59e0b;
}

.metric-icon-pink {
    background: #fce7f3;
}

.metric-icon-pink i {
    color: #ec4899;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Academic Services Section */
.academic-section {
    padding: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: none; /* Hide section title */
}

/* Services Grid - Always 2 columns per row */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding: 0;
}

/* Force 2 columns on all screen sizes */
.services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 8px 6px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 70px;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--dark-color);
}

.service-icon {
    width: 35px;
    height: 35px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-icon i {
    font-size: 1rem;
}

/* Service Icon Colors - Light pastel colors */
.service-icon-blue {
    background: #e6f2f5;
}

.service-icon-blue i {
    color: #81B1C0;
}

.service-icon-green {
    background: #e6f5eb;
}

.service-icon-green i {
    color: #147F3D;
}

.service-icon-orange {
    background: #fed7aa;
}

.service-icon-orange i {
    color: #f97316;
}

.service-icon-purple {
    background: #e9d5ff;
}

.service-icon-purple i {
    color: #8b5cf6;
}

.service-icon-red {
    background: #fce7f3;
}

.service-icon-red i {
    color: #ec4899;
}

.service-icon-teal {
    background: #ccfbf1;
}

.service-icon-teal i {
    color: #14b8a6;
}

.service-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 2px 0 1px 0;
    color: #1f2937;
    line-height: 1.1;
    text-align: center;
}

.service-subtitle {
    font-size: 0.65rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.activity-card {
    background: #f9fafb;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.activity-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.activity-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-large i {
    font-size: 1.8rem;
    color: white;
}

.activity-details {
    flex: 1;
}

.activity-details h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--dark-color);
}

.activity-details p {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.activity-time {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-content h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.activity-time {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Quick Links */
.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.quick-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Exams Grid */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.exam-card-grid {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    border-top: 4px solid var(--primary-color);
}

.exam-card-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exam-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(129, 177, 192, 0.4);
}

.exam-icon i {
    font-size: 2.2rem;
    color: white;
}

.exam-content {
    flex: 1;
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.exam-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.exam-course {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.exam-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.exam-info-item i {
    color: #81B1C0;
    font-size: 1.1rem;
}

.exam-info-item span {
    color: #4b5563;
    font-size: 0.9rem;
}

.exam-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.finance-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.finance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.finance-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(129, 177, 192, 0.4);
}

.finance-icon i {
    font-size: 2.5rem;
    color: white;
}

.finance-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.finance-content p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.pending-payment-item {
    padding: 15px;
    background: #fef3c7;
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.payment-method {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.payment-method i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Attendance Grid */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.attendance-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.attendance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.attendance-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(129, 177, 192, 0.4);
}

.attendance-icon i {
    font-size: 2.5rem;
    color: white;
}

.attendance-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.attendance-content p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Schedule Grid */
.schedule-grid {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 150px repeat(5, 1fr);
    gap: 1px;
    background: #e5e7eb;
}

.schedule-header {
    display: contents;
}

.schedule-header > div {
    background: #81B1C0;
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.schedule-row {
    display: contents;
}

.time-slot {
    background: #f9fafb;
    padding: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--dark-color);
    border-right: 2px solid #e5e7eb;
}

.schedule-cell {
    background: white;
    padding: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    color: white;
    border-radius: 8px;
    width: 100%;
}

.schedule-item i {
    font-size: 1.5rem;
}

.schedule-item strong {
    display: block;
    margin-bottom: 5px;
}

.schedule-item p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.schedule-cell.lunch {
    background: #fef3c7;
}

.lunch-item {
    background: var(--warning-color);
    justify-content: center;
}

/* Evaluation Grid */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.evaluation-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evaluation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.evaluation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.evaluation-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 12px;
}

.rating-section {
    margin-bottom: 15px;
}

.rating-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating i {
    font-size: 1.3rem;
    color: #fbbf24;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.profile-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #81B1C0 0%, #6ba0b0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    font-size: 5rem;
    color: white;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.profile-section-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.academic-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.academic-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.academic-item h6 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.academic-item p {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.course-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.course-item h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: var(--dark-color);
}

.course-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-header {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.card-body {
    padding: 25px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f9fafb;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table tfoot td {
    padding: 15px;
    font-size: 1.1rem;
}

#resultsTable {
    font-size: 0.95rem;
}

#resultsTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fafb;
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 2px solid #dee2e6;
}

#resultsTable tbody td {
    padding: 8px 12px;
    vertical-align: middle;
}

#resultsTable tbody tr {
    transition: all 0.2s ease;
}

#resultsTable tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card.shadow-sm {
    border-radius: 12px;
    overflow: hidden;
}

.card-header.bg-white {
    padding: 20px 25px;
    background: linear-gradient(to right, #f8f9fa, #ffffff) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #81B1C0;
    border: none;
}

.btn-primary:hover {
    background: #6ba0b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(129, 177, 192, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .dashboard-header h2 {
        font-size: 1.3rem;
    }
    
    .date-card {
        margin: 15px 20px;
        padding: 18px 20px;
    }
    
    .date-icon {
        width: 50px;
        height: 50px;
    }
    
    .date-day {
        font-size: 1.1rem;
    }
    
    .academic-section {
        padding: 0 20px 25px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    /* All grids become 1 column on mobile (only for very small screens) */
    /* Keep 2 columns per row on all screen sizes */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dashboard-grid,
    .quick-actions-grid,
    .activity-grid,
    .exams-grid,
    .finance-grid,
    .attendance-grid,
    .evaluation-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-card-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .exam-info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-header {
        display: none;
    }
    
    .schedule-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .time-slot {
        background: #81B1C0;
        color: white;
        padding: 10px;
        border-radius: 8px 8px 0 0;
    }
    
    .schedule-cell {
        border-radius: 0 0 8px 8px;
    }
    
    .service-card {
        min-height: 120px;
        padding: 18px 12px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 10px;
    }
    
    .service-icon i {
        font-size: 1.6rem;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .service-subtitle {
        font-size: 0.8rem;
    }
    
    .dashboard-card-icon,
    .finance-icon,
    .attendance-icon {
        width: 70px;
        height: 70px;
    }
    
    .dashboard-card-icon i,
    .finance-icon i,
    .attendance-icon i {
        font-size: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

