:root {
    --slr-primary: #0056b3;
    --slr-secondary: #d82a20;
    --slr-accent: #ffc107;
    --slr-dark: #1a2b3c;
    --slr-light: #f8f9fa;
    --slr-success: #28a745;
    --slr-warning: #ffc107;
    --slr-danger: #dc3545;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.top-header {
    background: linear-gradient(135deg, var(--slr-primary), var(--slr-secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 12px;
}

.header-title h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}

.header-title span {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
    display: none;
}

.user-name {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    opacity: 0.8;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: block;
}

/* Main Layout */
.app-container {
    display: flex;
    flex: 1;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    width: 240px;
    background: var(--slr-dark);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-menu {
    padding: 2px 0 20px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    margin: 5px 15px;
    border-radius: 6px;
    overflow: hidden;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0,86,179,0.3), transparent);
    border-left: 3px solid var(--slr-accent);
    color: white;
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.submenu {
    background: rgba(0,0,0,0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.show {
    max-height: 500px;
}

.submenu .nav-link {
    padding-left: 45px;
    font-size: 0.85rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    padding-top: 60px;
}

.content-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.content-header h2 {
    margin: 0;
    color: var(--slr-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.content-header h2 i {
    margin-right: 10px;
    color: var(--slr-primary);
    font-size: 1rem;
}

.content-area {
    padding: 20px;
    flex: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    border: none;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--slr-dark);
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 10px;
    color: var(--slr-primary);
    font-size: 0.9rem;
}

.card-body {
    padding: 15px 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--slr-primary);
}

.stat-card.urgent {
    border-left-color: var(--slr-secondary);
}

.stat-card h4 {
    margin-top: 0;
    color: var(--slr-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 5px 0;
    color: var(--slr-primary);
}

.stat-card.urgent .value {
    color: var(--slr-secondary);
}

.stat-card .change {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.change.positive {
    color: var(--slr-success);
}

.change.negative {
    color: var(--slr-danger);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background: var(--slr-light);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--slr-dark);
    border-bottom: 2px solid #eee;
    font-size: 0.8rem;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(0,86,179,0.03);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(0,86,179,0.1);
    color: var(--slr-primary);
}

.badge-success {
    background: rgba(40,167,69,0.1);
    color: var(--slr-success);
}

.badge-warning {
    background: rgba(255,193,7,0.1);
    color: var(--slr-warning);
}

.badge-danger {
    background: rgba(220,53,69,0.1);
    color: var(--slr-danger);
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--slr-primary);
    color: white;
}

.btn-primary:hover {
    background: #004494;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Form Elements */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-prepend {
    background: var(--slr-light);
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.input-group input {
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    flex: 1;
}

/* Footer */
.main-footer {
    background: var(--slr-dark);
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: white;
}

.footer-links a i {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.1rem;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .user-info {
        display: block;
    }
    
    .sidebar {
        transform: translateX(0);
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0px;
        padding-top: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-header h2 {
        font-size: 1.3rem;
    }
    
    .content-header h2 i {
        font-size: 1.1rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-links {
        gap: 20px;
    }
}















