﻿:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f3f4f6;
    --bg-surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    margin: 0;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 21px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    padding: 20px 16px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    cursor: pointer;
}

    .nav-item:hover {
        background-color: #f3f4f6;
        color: var(--text-main);
    }

    .nav-item.active {
        background-color: var(--primary);
        color: white;
        box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    }

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: 72px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.search-bar {
    background-color: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 8px 16px 8px 40px;
    width: 300px;
    font-size: 0.9rem;
    outline: none;
}

.search-container {
    position: relative;
}

    .search-container .material-symbols-rounded {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 20px;
    }

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.custom-dropdown-menu {
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    background: white;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
}

.custom-dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
    display: block;
    text-decoration: none;
}

    .custom-dropdown-item:hover {
        background-color: #f3f4f6;
        color: var(--primary);
    }

    .custom-dropdown-item.text-danger:hover {
        background-color: #fee2e2;
        color: #dc2626 !important;
    }

.content-body {
    padding: 32px;
    flex-grow: 1;
}

.card-custom {
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    padding: 24px;
    height: 100%;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-light-primary {
    background-color: #e0e7ff;
    color: var(--primary);
}

.bg-light-success {
    background-color: #dcfce7;
    color: #16a34a;
}

.bg-light-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.table-custom th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.table-custom td {
    padding: 16px 0;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.report-filter-bar {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.notification-bell {
    cursor: pointer;
    transition: all 0.2s;
}

    .notification-bell:hover {
        color: var(--primary) !important;
    }

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .search-bar {
        width: 200px;
    }

    .d-none {
        display: none !important;
    }
}

/* Table responsiveness improvements */
.table-responsive {
    border-radius: 16px 16px 0 0;
}

    .table-responsive::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: var(--primary-hover);
        }

.table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid var(--border-color);
}

.table tfoot td {
    background-color: #f9fafb;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .content-body {
        padding: 16px;
    }

    .card-custom {
        padding: 16px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}



/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 32px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

    .logo-wrapper .material-symbols-rounded {
        color: white !important;
        font-size: 40px !important;
    }

.login-header h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Form Styles */
.form-label {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #4b5563;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
}

.input-group-text {
    border: 1px solid #e5e7eb;
    border-right: none;
    padding: 0.75rem 1rem;
    background-color: white;
}

    .input-group-text .material-symbols-rounded {
        font-size: 20px;
        color: #9ca3af;
    }

.form-control {
    border: 1px solid #e5e7eb;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    height: 48px;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: none;
        outline: none;
    }

    .form-control::placeholder {
        color: #9ca3af;
        opacity: 1;
    }

.btn-outline-secondary {
    border: 1px solid #e5e7eb;
    border-left: none;
    background-color: white;
    padding: 0.75rem 1rem;
    height: 48px;
}

    .btn-outline-secondary:hover {
        background-color: #f9fafb;
        border-color: #e5e7eb;
    }

    .btn-outline-secondary .material-symbols-rounded {
        font-size: 20px;
        color: #6b7280;
    }

/* Checkbox */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #d1d5db;
    margin-top: 0.2rem;
}

    .form-check-input:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

.form-check-label {
    font-size: 0.95rem;
    color: #4b5563;
    margin-left: 4px;
}

/* Forgot Password Link */
.text-primary {
    color: var(--primary) !important;
    font-size: 0.95rem;
    text-decoration: none;
}

    .text-primary:hover {
        text-decoration: underline !important;
    }

/* Demo Credentials */
.demo-credentials {
    margin-top: 24px;
}

    .demo-credentials .bg-light {
        background-color: #f9fafb !important;
        border: 1px solid #e5e7eb;
    }

    .demo-credentials .d-flex {
        font-size: 0.95rem;
    }

    .demo-credentials .text-muted {
        color: #6b7280 !important;
    }

    .demo-credentials .fw-medium {
        color: #111827;
    }

/* Alert */
.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

    .alert-danger .btn-close {
        font-size: 0.8rem;
    }

/* Button */
.btn-primary {
    background-color: var(--primary);
    border: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .btn-primary:hover:not(:disabled) {
        background-color: var(--primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }

/* Footer */
.login-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 20px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
    }

        .logo-wrapper .material-symbols-rounded {
            font-size: 32px !important;
        }

    .login-header h2 {
        font-size: 1.25rem;
    }
}

/*SalesAudit */

.report-filter-bar .form-control,
.report-filter-bar .form-select {
    height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.report-filter-bar input[type="date"] {
    height: 38px;
    line-height: 38px;
}

