/* Custom Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--primary-color);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #ecf0f1;
    padding: 0.75rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Invoice Styles */
.invoice-header {
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 30px;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0 !important;
    }
    
    main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Dashboard Stats */
.stats-card {
    border-left: 4px solid;
}

.stats-card.bg-primary {
    border-left-color: #2980b9;
}

.stats-card.bg-success {
    border-left-color: #27ae60;
}

.stats-card.bg-info {
    border-left-color: #17a2b8;
}

.stats-card.bg-warning {
    border-left-color: #f39c12;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}






/* Header Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-brand small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
}

.dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.notification-dropdown {
    min-width: 300px;
}

.notification-dropdown .dropdown-header {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50 !important;
    margin-top: auto;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bdc3c7;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links .social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s;
}

.social-links .social-link:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

/* Back to Top Button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
}

/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 70px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-user {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    margin-bottom: 2px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.sidebar .nav-link[data-bs-toggle="collapse"] .fa-angle-down {
    transition: transform 0.3s;
}

.sidebar .nav-link[data-bs-toggle="collapse"][aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

.sidebar-footer {
    background-color: #f8f9fa;
}

/* Toast Notifications */
.toast {
    z-index: 1056;
}

/* Loading Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: static;
    }
    
    .footer .row > div {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
}

@media print {
    .navbar,
    .sidebar,
    .footer,
    #btn-back-to-top {
        display: none !important;
    }
    
    .page-wrapper {
        padding-top: 0 !important;
    }
}