html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}



/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    z-index: 100;
    padding: 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background: #343a40;
    transition: all 0.3s;
}

.main-content {
    margin-left: 260px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
    }

        .sidebar.active {
            margin-left: 0;
        }

    .main-content {
        margin-left: 0;
    }

        .main-content.active {
            margin-left: 260px;
        }
}

.sidebar-header {
    padding: 15px;
    background: #212529;
    text-align: center;
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
}

.sidebar-menu {
    padding-top: 20px;
}

    .sidebar-menu .nav-link {
        color: #ced4da;
        padding: 12px 20px;
        font-size: 1rem;
        position: relative;
        border-left: 4px solid transparent;
        transition: all 0.3s;
    }

        .sidebar-menu .nav-link:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
            border-left-color: #007bff;
        }

        .sidebar-menu .nav-link.active {
            color: #fff;
            background: rgba(0, 123, 255, 0.1);
            border-left-color: #007bff;
        }

        .sidebar-menu .nav-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
    background: #212529;
}

/* Login container styling */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f8f9fa;
}

/* Form styling */
.form-floating > label {
    font-size: 0.9rem;
}

.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    background-color: #007bff;
    color: white;
    border-bottom: none;
    padding: 1.25rem;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
    }

/* Toggle sidebar button */
.sidebar-toggle {
    background: none;
    border: none;
    color: #343a40;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
}

    .sidebar-toggle:focus {
        outline: none;
    }

/* Content header */
.content-header {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

    .content-header h1 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 600;
    }

/* Navbar styling */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Menu animation */
.sidebar-menu .nav-link {
    position: relative;
    overflow: hidden;
}

    .sidebar-menu .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        background: #007bff;
        transition: width 0.3s ease;
    }

    .sidebar-menu .nav-link:hover::after {
        width: 100%;
    }
/* Sales Report Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --primary-gradient: linear-gradient(135deg, #0d6efd, #0a58ca);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 10px;
    --border-color: #dee2e6;
}

/* Main Card Styling */
.main-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .main-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }

    .main-card .card-header {
        background: var(--primary-gradient);
        color: white;
        padding: 1.2rem 1.5rem;
    }

        .main-card .card-header h2 {
            margin: 0;
            font-size: 1.4rem;
            font-weight: 600;
        }

    .main-card .card-body {
        padding: 2rem;
    }

/* Button Styling */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 6px rgba(10, 88, 202, 0.25);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0a58ca, #084298);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(10, 88, 202, 0.3);
    }

.btn-secondary {
    background: var(--secondary-color);
    border: none;
}

/* Report Header Styling */
.report-info-card {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dealer-info {
    padding: 1rem 0;
}

.dealer-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.dealer-address {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.dealer-contact {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.report-title-box {
    margin-top: 1.5rem;
}

    .report-title-box h4 {
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--dark-color);
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        .report-title-box h4:after {
            content: '';
            position: absolute;
            width: 70%;
            height: 3px;
            background: var(--primary-gradient);
            bottom: -8px;
            left: 15%;
            border-radius: 2px;
        }

.customer-badge {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
}

.date-range-badge {
    display: inline-block;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.company-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

.qr-placeholder {
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Data Table Styling */
.data-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

    .data-table thead th {
        background-color: rgba(13, 110, 253, 0.1);
        border-bottom: 2px solid var(--primary-color);
        font-weight: 600;
        color: var(--dark-color);
        padding: 1rem;
    }

    .data-table tbody td {
        padding: 0.75rem 1rem;
        vertical-align: middle;
    }

    .data-table .row-hover:hover {
        background-color: rgba(13, 110, 253, 0.05);
        transition: background-color 0.2s;
    }

    .data-table tfoot {
        font-weight: 600;
    }

        .data-table tfoot tr {
            background-color: rgba(13, 110, 253, 0.08);
        }

.amount {
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.total-amount {
    color: var(--primary-color);
}

.delivery-no {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Summary Card Styling */
.summary-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

    .summary-card .card-header {
        background: linear-gradient(90deg, #f8f9fa, #e9ecef);
        color: var(--dark-color);
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

        .summary-card .card-header h5 {
            margin: 0;
            font-weight: 600;
        }

.summary-table-wrapper {
    padding: 1rem;
}

.summary-table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .summary-table th {
        width: 50%;
        background-color: rgba(13, 110, 253, 0.05);
        padding: 0.6rem 1rem;
        font-weight: 500;
    }

    .summary-table td {
        padding: 0.6rem 1rem;
    }

.grand-total-row {
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 700;
}

    .grand-total-row th, .grand-total-row td {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }

.in-words {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.profit-summary-table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.profit-row {
    background-color: rgba(40, 167, 69, 0.1);
    font-weight: 700;
}

.high-profit {
    color: var(--success-color);
    font-weight: 700;
}

.med-profit {
    color: #fd7e14;
    font-weight: 600;
}

.low-profit {
    color: var(--danger-color);
    font-weight: 600;
}

.chart-container {
    margin-top: 1rem;
    padding: 0.5rem;
}

/* Footer Styling */
.report-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.printed-info {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.printed-by, .printed-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.signature-container {
    display: flex;
    justify-content: flex-end;
}

.signature-line {
    border-top: 1px solid #333;
    width: 200px;
    padding-top: 0.5rem;
    text-align: center;
}

    .signature-line p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

.powered-by {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 2rem;
}

    .powered-by a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .powered-by a:hover {
            text-decoration: underline;
        }

/* Print Styles */
@media print {
    .btn, a.btn {
        display: none;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .container-fluid {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-card {
        box-shadow: none;
        border: none;
    }

        .main-card .card-header {
            background: white;
            color: black;
            border-bottom: 2px solid #333;
        }

    .card {
        border: none;
    }

    .summary-card .card-header {
        background: white;
        border-bottom: 1px solid #333;
    }

    .report-title-box h4:after {
        background: #333;
    }

    .customer-badge, .date-range-badge {
        background: none;
        border: 1px solid #333;
        color: #333;
    }

    .data-table thead th {
        background-color: white;
        border-bottom: 2px solid #333;
        color: black;
    }

    .data-table tfoot tr {
        background-color: white;
        border-top: 2px solid #333;
    }

    .grand-total-row, .profit-row {
        background-color: white;
        border-top: 1px solid #333;
        border-bottom: 1px solid #333;
    }

    .printed-info {
        background: none;
        border: 1px solid #333;
    }

    .chart-container {
        display: none;
    }
}