/* GLOBAL */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* SIDEBAR */
.sidebar {
    min-width: 220px;
    max-width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #0a0f24;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s;
}

.sidebar h3 {
    font-weight: 600;
    margin-bottom: 30px;
}

.sidebar .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.sidebar .nav-link:hover {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
}

.sidebar .badge {
    font-size: 0.8rem;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 220px;
    padding: 30px 40px;
}

/* PROFILE CARD */
.card {
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f1f3f6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* KPI CARDS */
.hover-gradient-card {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(145deg, #ffffff, #f1f3f6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hover-gradient-card:hover {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    transform: translateY(-5px);
}

.hover-gradient-card h3, .hover-gradient-card h5 {
    margin-bottom: 10px;
}

.hover-gradient-card p {
    margin: 0;
}

/* CHARTS */
canvas {
    max-width: 100%;
}

/* NOTIFICATIONS */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    transition: background 0.3s;
}

.list-group-item:hover {
    background: linear-gradient(135deg, #e3f2fd, #d1e7ff);
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #0096c7);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .hover-gradient-card h3, .hover-gradient-card h5 {
        font-size: 1.2rem;
    }
}


/* FILTER BAR */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--card-gradient);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.filter-bar input,
.filter-bar select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b8c3d9;
}

.filter-btn {
    padding: 10px 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.filter-btn:hover {
    opacity: 0.8;
}

/* TABLE */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.dashboard-table th {
    padding: 15px;
    background: #23395B;
    color: white;
    text-align: left;
}

.dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e4ed;
}

.status {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.status.pending { background: #fff4c4; color: #9c7c00; }
.status.approved { background: #d4f8d4; color: #1a8f2b; }
.status.rejected { background: #ffd4d4; color: #b30000; }

.view-btn {
    padding: 8px 14px;
    background: #23395B;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.view-btn:hover {
    background: #1a2d48;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Full-height Sidebar */
.sidebar-glass {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 2px solid rgba(255, 255, 255, 0.25);

    padding: 20px 15px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Box */
.logo-box img {
    width: 140px;
    margin-bottom: 30px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

/* Menu Styling */
.sidebar-glass .menu {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-glass .menu li {
    width: 100%;
}

.sidebar-glass .menu a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 15px;
    font-size: 16px;
    color: #111;
    text-decoration: none;

    border-radius: 10px;
    transition: 0.25s;
    font-weight: 500;
}

/* Icon size */
.sidebar-glass .menu a i {
    font-size: 18px;
}

/* Hover effect */
.sidebar-glass .menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(6px);
}

/* Active page example */
.sidebar-glass .menu a.active {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

body {
    background: url('images/dashboard-bg.jpg') no-repeat center/cover;
}

.calendar-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
}

.calendar-header h4 {
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    height: 85px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day:hover {
    background: rgba(255,255,255,0.15);
}

.calendar-day.inactive {
    opacity: 0.25;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
}

/* Past events */
.event-past {
    background: rgba(0, 150, 255, 0.3) !important;
}

/* Upcoming events */
.event-upcoming {
    background: rgba(0, 255, 165, 0.4) !important;
    border: 2px solid rgba(0, 255, 165, 1);
}

/* Popup */
.calendar-popup {
    position: absolute;
    background: #ffffff;
    color: #000;
    padding: 12px 15px;
    border-radius: 12px;
    display: none;
    z-index: 999;
    max-width: 220px;
}
