/* QuickBook Pro - Main Stylesheet */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 280px;
    --header-height: 60px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles - Updated for modern design */
.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(0);
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Sidebar active state for mobile */
.sidebar.active {
    transform: translateX(0);
}

/* Content Area - Updated */
#content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Content when sidebar is collapsed */
#content.collapsed {
    width: 100%;
    margin-left: 0;
}

/* Content when sidebar is active (mobile) */
#content.active {
    width: 100%;
    margin-left: 0;
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .btn {
    border-radius: 8px;
}

/* Sidebar Toggle Button */
#sidebarCollapse {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#sidebarCollapse:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

#sidebarCollapse:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Buttons */
.btn, .btn-group .btn {
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i { margin-right: 0.5em; }

.btn-primary { background: linear-gradient(90deg, #667eea 0%, #5bc0be 100%); border: none; color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, #5bc0be 0%, #667eea 100%); color: #fff; }
.btn-success { background: linear-gradient(90deg, #43a047 0%, #2196f3 100%); border: none; color: #fff; }
.btn-success:hover { background: linear-gradient(90deg, #2196f3 0%, #43a047 100%); color: #fff; }
.btn-warning { background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%); border: none; color: #212529; }
.btn-warning:hover { background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%); color: #212529; }
.btn-danger { background: linear-gradient(90deg, #dc3545 0%, #ff1744 100%); border: none; color: #fff; }
.btn-danger:hover { background: linear-gradient(90deg, #ff1744 0%, #dc3545 100%); color: #fff; }
.btn-info { background: linear-gradient(90deg, #17a2b8 0%, #00bcd4 100%); border: none; color: #fff; }
.btn-info:hover { background: linear-gradient(90deg, #00bcd4 0%, #17a2b8 100%); color: #fff; }
.btn-outline-primary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info {
    background: #fff;
    border-width: 2px;
    font-weight: 600;
}
.btn-outline-primary { border-color: #667eea; color: #667eea; }
.btn-outline-primary:hover { background: #667eea; color: #fff; }
.btn-outline-success { border-color: #43a047; color: #43a047; }
.btn-outline-success:hover { background: #43a047; color: #fff; }
.btn-outline-warning { border-color: #ffc107; color: #ffc107; }
.btn-outline-warning:hover { background: #ffc107; color: #212529; }
.btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.btn-outline-danger:hover { background: #dc3545; color: #fff; }
.btn-outline-info { border-color: #17a2b8; color: #17a2b8; }
.btn-outline-info:hover { background: #17a2b8; color: #fff; }

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

/* Charts */
.chart-area {
    position: relative;
    height: 300px;
}

.chart-pie {
    position: relative;
    height: 250px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    #content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Modal Improvements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* Dropdown Improvements */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Form Improvements */
.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* Table Improvements */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Pagination Improvements */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.pagination .page-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Modern Button Styles */
.btn, .btn-group .btn {
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i { margin-right: 0.5em; }

.btn-primary { background: linear-gradient(90deg, #667eea 0%, #5bc0be 100%); border: none; color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, #5bc0be 0%, #667eea 100%); color: #fff; }
.btn-success { background: linear-gradient(90deg, #43a047 0%, #2196f3 100%); border: none; color: #fff; }
.btn-success:hover { background: linear-gradient(90deg, #2196f3 0%, #43a047 100%); color: #fff; }
.btn-warning { background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%); border: none; color: #212529; }
.btn-warning:hover { background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%); color: #212529; }
.btn-danger { background: linear-gradient(90deg, #dc3545 0%, #ff1744 100%); border: none; color: #fff; }
.btn-danger:hover { background: linear-gradient(90deg, #ff1744 0%, #dc3545 100%); color: #fff; }
.btn-info { background: linear-gradient(90deg, #17a2b8 0%, #00bcd4 100%); border: none; color: #fff; }
.btn-info:hover { background: linear-gradient(90deg, #00bcd4 0%, #17a2b8 100%); color: #fff; }
.btn-outline-primary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info {
    background: #fff;
    border-width: 2px;
    font-weight: 600;
}
.btn-outline-primary { border-color: #667eea; color: #667eea; }
.btn-outline-primary:hover { background: #667eea; color: #fff; }
.btn-outline-success { border-color: #43a047; color: #43a047; }
.btn-outline-success:hover { background: #43a047; color: #fff; }
.btn-outline-warning { border-color: #ffc107; color: #ffc107; }
.btn-outline-warning:hover { background: #ffc107; color: #212529; }
.btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.btn-outline-danger:hover { background: #dc3545; color: #fff; }
.btn-outline-info { border-color: #17a2b8; color: #17a2b8; }
.btn-outline-info:hover { background: #17a2b8; color: #fff; }

/* Card Styles */
.card, .invoice-card, .customer-card, .vendor-card, .expense-card {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 1.5rem;
    background: #fff;
}

.card-header, .modal-header {
    border-radius: 18px 18px 0 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-body, .modal-body {
    padding: 1.5rem;
}

/* Sidebar Modernization */
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #5bc0be 100%);
    color: #fff;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    padding-top: 1.5rem;
}

.sidebar .sidebar-header {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.5rem 1rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .components li a {
    border-radius: 10px;
    margin: 0.25rem 0;
    padding: 0.85rem 1.2rem;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7em;
    transition: background 0.2s, color 0.2s;
}

.sidebar .components li a:hover, .sidebar .components li.active a {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.sidebar .components li a i {
    font-size: 1.2em;
    margin-right: 0.7em;
}

/* Bottom Nav Modernization */
.mobile-bottom-nav {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    background: #fff;
    padding: 0.5rem 0;
}

.mobile-bottom-nav .nav-link {
    color: #667eea;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.mobile-bottom-nav .nav-link.active, .mobile-bottom-nav .nav-link:active {
    background: #e3eafe;
    color: #5bc0be;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.3em;
    margin-bottom: 0.2em;
}

/* Modal Modernization */
.modal-content {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: none;
}

.modal-header {
    border-radius: 18px 18px 0 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-footer {
    border-radius: 0 0 18px 18px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.2rem 1.5rem;
}

/* General Improvements */
body, html {
    background: #f4f7fa;
}

input, select, textarea {
    border-radius: 10px !important;
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
}

label {
    font-weight: 600;
    margin-bottom: 0.4rem;
} 