/* Base Styles with Improved Typography */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f8fafc;
}

/* Improved Typography with Larger Font Sizes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }      /* 40px */
h2 { font-size: 2rem; }        /* 32px */
h3 { font-size: 1.75rem; }     /* 28px */
h4 { font-size: 1.5rem; }      /* 24px */
h5 { font-size: 1.25rem; }     /* 20px */
h6 { font-size: 1.125rem; }    /* 18px */

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
}

.btn {
    font-size: 1rem;
    font-weight: 500;
}

.table {
    font-size: 1.05rem;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
}

/* Left Sidebar Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin: 0.25rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #467fcf;
}

.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #467fcf;
}

.sidebar-nav .nav-link i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.content {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
}

/* Improved Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    background: white;
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #1a202c;
    margin-bottom: 0;
}

/* Improved Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.table th {
    font-weight: 600;
    background: #f7fafc;
    padding: 1rem;
    font-size: 1.1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Improved Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #467fcf;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Improved Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Improved Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Improved Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}

/* Stats Cards */
.stats-card {
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-card .card-body {
    padding: 2.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        padding: 1rem;
    }
    
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: #467fcf;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Better focus states */
.btn:focus,
.form-control:focus {
    outline: 2px solid #467fcf;
    outline-offset: 2px;
}

/* Improved text contrast */
.text-muted {
    color: #718096 !important;
}

/* Better spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}