html, body {
    height: 100%;
}

body {
    background: url('/icon/bg_1.jpg') no-repeat center center fixed;
    background-size: cover;
	overflow-x: hidden;
}

.overlay {
    background: rgba(0,0,0,.65);
    height: 100%;
    padding: 20px;
}

.dashboard {
    background: rgba(255,255,255,.96);
    border-radius: 16px;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Carousel */
.carousel-item {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0,0,0,.6);
    border-radius: 10px;
    padding: 15px;
}

/* Calendar */
.calendar th, .calendar td {
    text-align: center;
    padding: 6px;
    font-size: 14px;
}

.calendar .today {
    background: #26a69a;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg,#2e7d32,#26a69a);
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    font-weight: bold;
}

.stat-card small {
    opacity: .9;
}
.stat-card img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    margin-top: 8px;
}
.brand-text {
    line-height: 1.1;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
    display: block;
}

.brand-tagline {
    font-size: 11px;
    opacity: .85;
    display: block;
    margin-top: -2px; /* 🔥 pulls it closer */
}

.calendar-wrapper {
    flex: 1;
    overflow: hidden;
}

.calendar-scroll {
    height: 100%;
    overflow-y: auto;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.hover-scale:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}
.card-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ================= STUDENT SIDEBAR ================= */
.sidebar {
    background: linear-gradient(180deg, #198754, #157347);
    border-radius: 16px;
    padding: 15px;
}
.sidebar-menu .nav-link {
    color: #eafaf1;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.sub-link { 
    font-size: 0.9rem; 
    color: #d4f1dd; 
    padding-left: 10px;
}
.sub-link:hover { color: #fff; }
.sidebar-menu .nav-link i {
    transition: transform 0.3s ease;
}
.sidebar-menu .nav-link:hover i {
    transform: rotate(10deg);
}

/* ================= STATS CARDS ================= */
.stat-card {
    border-radius: 16px; 
    color: #fff; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.stat-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.stat-dark { background: linear-gradient(135deg, #334155, #020617); }
.stat-icon {
    position: absolute; 
    right: 15px; 
    bottom: 10px; 
    font-size: 2.5rem; 
    opacity: 0.25; 
    transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.2); }

/* ================= DASHBOARD CARDS ================= */
.dashboard-card {
    border-radius: 16px;
    transition: all 0.3s ease;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.dashboard-card .btn {
    border-radius: 50px;
    padding: 6px 18px;
    transition: all 0.3s ease;
}
.dashboard-card .btn:hover { transform: translateY(-2px); }

/* ================= EXAM SCHEDULE & NOTICE BOARD ================= */
.exam-schedule li,
.notice-board li {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.exam-schedule li:hover,
.notice-board li:hover {
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}
.exam-schedule li::before { content: "📅 "; }
.notice-board li::before { content: "📌 "; }
.exam-schedule li strong,
.notice-board li strong { color: #fff; }
.exam-schedule li small,
.notice-board li small { color: #d4f1dd; }

/* ================= ANNOUNCEMENTS CAROUSEL ================= */
#announcementCarousel .carousel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}
#announcementCarousel .carousel-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px 15px;
    margin: 0 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
#announcementCarousel .carousel-item.active {
    transform: scale(1.05);
}
#announcementCarousel .carousel-control-prev-icon,
#announcementCarousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* ================= CLOCK ================= */
#digitalClock {
    color: #22c55e;
    text-shadow: 0 0 8px #22c55e, 0 0 20px #22c55e;
}
#digitalDate {
    font-style: italic;
    color: #a0a0a0;
}

/* ================= GENERAL ================= */
.card {
    border-radius: 16px;
}

/* Modern Navbar */
.modern-navbar {
    background: linear-gradient(90deg, #2e7d32, #26a69a);
    border-radius: 12px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
}
.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    border-radius: 50%;
    transition: transform 0.3s ease;
    margin-right: 12px; /* additional spacing if needed */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.modern-navbar .logo-img {
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.modern-navbar .logo-img:hover {
    transform: rotate(-10deg) scale(1.1);
}
.modern-navbar .brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}
.modern-navbar .brand-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
}

/* User Button */
.user-btn {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.user-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Dropdown Menu */
.modern-dropdown {
    background: #26a69a;
    border-radius: 12px;
    min-width: 150px;
}
.modern-dropdown .dropdown-item {
    color: #fff;
    transition: background 0.3s ease, transform 0.2s ease;
}
.modern-dropdown .dropdown-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}
.logout-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.logout-btn:hover {
    color: #000;
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
}

/* DataTable Styling */
/* Make table 100% width and modern */
#examTable {
    width: 100%; /* full width */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#examTable thead {
    background: #22c55e; /* green header */
    color: #fff;
    font-weight: 600;
}

#examTable tbody tr:hover {
    background: rgba(34,197,94,0.1);
}

#examTable .btn-success {
    border-radius: 50px;
    padding: 6px 18px;
    transition: all 0.3s ease;
}

/* DataTables search input */
.dataTable-input {
    border-radius: 12px;
    border: 1px solid #ced4da;
    padding: 4px 10px;
    width: 200px;
    margin-bottom: 10px;
}

/* DataTables pagination buttons */
.dataTable-pagination li button {
    border-radius: 50%;
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #26a69a;
    color: #fff;
    border: none;
}
.dataTable-pagination li button:hover {
    background-color: #22c55e;
}

/* Active link styling */
.navbar-nav .nav-link.active {
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    color: #fff !important;
    transition:all 0.3s ease;
}

/* Dropdown menu styling */
.dropdown-menu {
    background: #26a69a;
    border-radius: 12px;
    min-width: 150px;
}

.dropdown-menu .dropdown-item {
    color: #fff;
    transition: background 0.3s ease, transform 0.2s ease;
}
.dropdown-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}
.brand-title {
    font-size: 1.25rem;
}

.brand-tagline {
    font-size: 0.75rem;
    line-height: 1;
}

@media (max-width: 767px) {
    .navbar-nav .nav-link {
        margin-bottom: 0.5rem;
    }
}

.calendar .badge {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today {
    padding: 2px 4px;
    display: inline-block;
    width: 100%;
    text-align: center;
}