/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #F8FAFC;
    color: #0F172A;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #475569;
}

/* Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    padding: 32px 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    padding: 0 24px 32px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 32px;
}

.sidebar-header h2 {
    color: #00695C;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 14px;
    color: #475569;
    font-weight: 400;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background-color: #E0F2F1;
    color: #00695C;
}

.nav-item.active .nav-link {
    background-color: #E0F2F1;
    color: #00695C;
    border-left-color: #00695C;
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
}

.nav-text {
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 32px;
    transition: margin-left 0.3s ease-in-out;
}

/* Page Management */
.page {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page.active {
    display: block;
    opacity: 1;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    color: #0F172A;
    margin-bottom: 8px;
}

.page-header p {
    color: #475569;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: #E0F2F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

.card-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
}

/* Recent Entries */
.recent-entries {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.recent-entries h2 {
    margin-bottom: 24px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #F8FAFC;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.data-table tbody tr:hover {
    background-color: #F8FAFC;
}

.data-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.data-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.data-table .amount {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Forms */
.entry-form {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0F172A;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.form-section h3 {
    color: #00695C;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Total Display */
.total-display {
    background: #E0F2F1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 24px 0;
}

.total-display h3 {
    color: #00695C;
    font-size: 20px;
    margin: 0;
}

#total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #00695C;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Hind Siliguri', sans-serif;
}

.btn-primary {
    background-color: #00897B;
    color: white;
}

.btn-primary:hover {
    background-color: #00695C;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.btn-danger {
    background-color: #DC2626;
    color: white;
}

.btn-danger:hover {
    background-color: #B91C1C;
}

/* Month Selector */
.month-selector {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.month-btn {
    padding: 12px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 500;
    color: #475569;
}

.month-btn:hover {
    background: #E0F2F1;
    border-color: #00897B;
    color: #00695C;
}

.month-btn.active {
    background: #00897B;
    border-color: #00897B;
    color: white;
}

/* Monthly Content */
.monthly-content {
    display: grid;
    gap: 24px;
}

.month-summary, .monthly-table {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.category-breakdown {
    display: grid;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 6px;
}

.category-item.total {
    background: #E0F2F1;
    font-weight: 600;
    color: #00695C;
}

.category-name {
    font-weight: 500;
}

.category-amount {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Yearly Summary */
.year-summary {
    display: grid;
    gap: 32px;
}

.year-total {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.year-total h2 {
    color: #475569;
    margin-bottom: 16px;
}

.year-amount {
    font-size: 48px;
    font-weight: 700;
    color: #00695C;
    font-family: 'Inter', sans-serif;
}

.yearly-category-breakdown {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.category-chart {
    display: grid;
    gap: 16px;
}

.chart-item {
    display: grid;
    grid-template-columns: 200px 1fr 120px;
    gap: 16px;
    align-items: center;
}

.chart-label {
    font-weight: 500;
    color: #475569;
}

.chart-bar {
    background: #F1F5F9;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.chart-fill {
    background: linear-gradient(90deg, #00897B, #00695C);
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease-in-out;
}

.chart-value {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #00695C;
}

.monthly-overview {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.months-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.month-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.month-card:hover {
    background: #E0F2F1;
    border-color: #00897B;
    transform: translateY(-2px);
}

.month-name {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.month-amount {
    font-size: 18px;
    font-weight: 700;
    color: #00695C;
    font-family: 'Inter', sans-serif;
}

/* Export Options */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.export-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.export-card h3 {
    color: #00695C;
    margin-bottom: 12px;
}

.export-card p {
    margin-bottom: 20px;
    color: #475569;
}

.pdf-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #475569;
    transition: all 0.3s ease-in-out;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #00897B;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    z-index: 1002;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

/* Action Buttons in Tables */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s ease-in-out;
}

.action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.action-btn.edit:hover {
    background: #FDE68A;
}

.action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.action-btn.delete:hover {
    background: #FECACA;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 24px 16px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .chart-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .months-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 16px 16px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .entry-form {
        padding: 20px 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .export-options {
        grid-template-columns: 1fr;
    }
    
    .pdf-options {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .form-actions,
    .btn,
    .action-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .page {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card,
    .entry-form,
    .month-summary,
    .monthly-table,
    .year-total,
    .yearly-category-breakdown,
    .monthly-overview,
    .export-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeInUp 0.3s ease-in-out;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
.month-btn:focus {
    outline: 2px solid #00897B;
    outline-offset: 2px;
}

/* Invoice Styles */
.invoice-container {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.invoice-container.edit-mode {
    border-left: 4px solid #F59E0B;
    background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
}

.invoice-container.edit-mode::before {
    content: "✏️ সম্পাদনা মোড";
    position: absolute;
    top: -8px;
    right: 16px;
    background: #F59E0B;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invoice-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #E2E8F0;
}

.invoice-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.company-info {
    text-align: right;
}

.company-info h3 {
    color: #00695C;
    font-size: 24px;
    margin-bottom: 8px;
}

.company-info p {
    margin-bottom: 4px;
    color: #475569;
}

.invoice-items {
    margin-bottom: 32px;
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.items-header h3 {
    color: #00695C;
    margin: 0;
}

.invoice-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.invoice-table th {
    background: #F8FAFC;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12px;
}

.invoice-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.invoice-table tbody tr:hover {
    background-color: #F8FAFC;
}

.invoice-table input,
.invoice-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.invoice-table .item-select {
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif;
    background: white;
    cursor: pointer;
}

.invoice-table .unit-price,
.invoice-table .quantity {
    text-align: center;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.invoice-table input:focus,
.invoice-table select:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.1);
}

.invoice-table .amount-cell {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: #F8FAFC;
}

.remove-row-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.2s ease-in-out;
}

.remove-row-btn:hover {
    background: #FECACA;
    transform: translateY(-1px);
}

.invoice-summary {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.summary-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
    min-width: 300px;
}

.summary-section h4 {
    color: #00695C;
    margin-bottom: 16px;
    font-size: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.vat-row {
    background: #F8FAFC;
    padding: 8px 16px;
    margin: 4px -16px;
    border-radius: 4px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #00695C;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #00695C;
    background: #E0F2F1;
    margin: 8px -16px -16px;
    padding: 12px 16px 16px;
    border-radius: 0 0 8px 8px;
}

.invoice-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#invoice-preview-modal {
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

#invoice-preview-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Override any other z-index conflicts */
body.modal-open {
    overflow: hidden;
}

.modal-open #invoice-preview-modal {
    z-index: 99999 !important;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure modal is always on top */
.modal, .modal.show {
    position: fixed !important;
}

/* Modal content be clickable */
.modal-content {
    position: relative;
    z-index: 10000;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.modal-header h3 {
    color: #00695C;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #475569;
    padding: 4px;
}

.modal-close:hover {
    color: #DC2626;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}

/* Invoice Preview Styles */
.invoice-preview {
    background: white;
    padding: 40px;
    font-family: 'Hind Siliguri', sans-serif;
}

.invoice-preview-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00695C;
}

.invoice-preview-company {
    font-size: 28px;
    font-weight: 700;
    color: #00695C;
    margin-bottom: 8px;
}

.invoice-preview-address {
    color: #475569;
    margin-bottom: 4px;
}

.invoice-preview-invoice-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.invoice-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-preview-table th {
    background: #00695C;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.invoice-preview-table td {
    padding: 12px;
    border-bottom: 1px solid #E2E8F0;
}

.invoice-preview-table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.invoice-preview-summary {
    margin-left: auto;
    width: 300px;
}

.invoice-preview-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
}

.invoice-preview-summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #00695C;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #00695C;
}

/* Category Options for Invoice */
.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.category-option {
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.category-option:hover {
    border-color: #00897B;
    background: #E0F2F1;
}

.category-option.selected {
    border-color: #00897B;
    background: #E0F2F1;
}

/* Responsive Design for Invoice */
@media (max-width: 768px) {
    .invoice-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .invoice-info {
        grid-template-columns: 1fr;
    }
    
    .company-info {
        text-align: left;
    }
    
    .invoice-table {
        font-size: 12px;
    }
    
    .invoice-table th,
    .invoice-table td {
        padding: 8px 4px;
    }
    
    .items-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .invoice-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Invoices List Styles */
.invoices-list-container {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-filter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.search-box input:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.filter-options select {
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.filter-options select:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.invoices-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.invoices-table th {
    background: #F8FAFC;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoices-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.invoices-table tbody tr:hover {
    background-color: #F8FAFC;
}

.invoices-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.invoices-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.invoice-amount {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #00695C;
}

.invoice-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 4px 0;
    border-top: 1px solid #E2E8F0;
}

.invoice-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invoice-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.invoice-action-btn.view {
    background: #DBEAFE;
    color: #1E40AF;
}

.invoice-action-btn.view:hover {
    background: #BFDBFE;
}

.invoice-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.invoice-action-btn.edit:hover {
    background: #FDE68A;
}

.invoice-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.invoice-action-btn.delete:hover {
    background: #FECACA;
}

.invoice-action-btn.duplicate {
    background: #E0F2F1;
    color: #00695C;
}

.invoice-action-btn.duplicate:hover {
    background: #B2DFDB;
}

/* Tooltip for buttons */
.invoice-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
}
    color: #00695C;
}

.invoice-action-btn.duplicate:hover {
    background: #B2DFDB;
}

.no-data-message {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.no-data-message h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #374151;
}

.no-data-message p {
    font-size: 14px;
    margin: 0;
}

/* Edit Invoice Modal */
.edit-invoice-modal {
    display: none;
    position: fixed;
    z-index: 1004;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.edit-invoice-modal .modal-content {
    background-color: #FFFFFF;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.edit-invoice-modal .invoice-container {
    box-shadow: none;
    border-radius: 0;
    max-height: none;
}

/* High contrast mode support for Invoice List */
@media (prefers-contrast: high) {
    .invoice-container,
    .invoice-table,
    .summary-section,
    .modal-content,
    .invoices-table-container {
        border: 2px solid #0F172A;
    }
    
    .invoice-table th,
    .invoices-table th {
        background: #0F172A;
        color: white;
    }
}

/* Financial Summary Styles */
.financial-summary {
    margin-bottom: 32px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.summary-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #E2E8F0;
}

.summary-card.income {
    border-left-color: #16A34A;
}

.summary-card.expense {
    border-left-color: #DC2626;
}

.summary-card.balance {
    border-left-color: #00695C;
}

.summary-card h3 {
    color: #0F172A;
    margin-bottom: 16px;
    font-size: 16px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F1F5F9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 600;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #E2E8F0;
}

.summary-item span:first-child {
    color: #475569;
    font-size: 14px;
}

.summary-item span:last-child {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.summary-item.total span:last-child {
    font-size: 16px;
    color: #00695C;
}

.positive {
    color: #16A34A !important;
}

.negative {
    color: #DC2626 !important;
}

/* Income Page Styles */
.income-container {
    display: grid;
    gap: 32px;
}

.add-income-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.add-income-section h3 {
    color: #00695C;
    margin-bottom: 24px;
    font-size: 20px;
}

.income-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #0F172A;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.income-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.list-header h3 {
    color: #00695C;
    margin: 0;
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-controls select,
.filter-controls input {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif;
    background: white;
}

.income-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.income-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.income-table th {
    background: #F8FAFC;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #E2E8F0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.income-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.income-table tbody tr:hover {
    background-color: #F8FAFC;
}

.income-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.income-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.income-amount {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #16A34A;
}

.income-actions {
    display: flex;
    gap: 8px;
}

.income-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Hind Siliguri', sans-serif;
}

.income-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.income-action-btn.edit:hover {
    background: #FDE68A;
}

.income-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.income-action-btn.delete:hover {
    background: #FECACA;
}

/* Income Type Badges */
.income-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.income-type-badge.capital {
    background: #DBEAFE;
    color: #1E40AF;
}

.income-type-badge.sales {
    background: #D1FAE5;
    color: #065F46;
}

.income-type-badge.investment {
    background: #FEF3C7;
    color: #92400E;
}

.income-type-badge.loan {
    background: #E0F2F1;
    color: #00695C;
}

.income-type-badge.other {
    background: #F3F4F6;
    color: #374151;
}

/* Responsive Design for Financial Summary */
@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        justify-content: stretch;
    }
    
    .filter-controls select,
    .filter-controls input {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .search-filter-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .invoices-table,
    .income-table {
        font-size: 12px;
    }
    
    .invoices-table th,
    .invoices-table td,
    .income-table th,
    .income-table td {
        padding: 8px 12px;
    }
    
    .invoice-actions,
    .income-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .invoice-action-btn,
    .income-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .edit-invoice-modal .modal-content {
        width: 98%;
        margin: 1% auto;
    }
}

/* Customer Management Styles */
.customers-container {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.add-customer-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E2E8F0;
}

.customer-form {
    margin-top: 20px;
}

.search-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-controls input {
    padding: 8px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
}

.customer-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.customer-table th {
    background: #00695C;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
}

.customer-table td {
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: top;
}

.customer-table tr:last-child td {
    border-bottom: none;
}

.customer-table tr:hover {
    background: #F8FAFC;
}

.customer-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 4px 0;
}

.customer-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.customer-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.customer-action-btn.edit:hover {
    background: #FDE68A;
}

.customer-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.customer-action-btn.delete:hover {
    background: #FECACA;
}

/* Invoice Customer Selection */
#invoice-customer {
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

#invoice-customer:focus {
    outline: none;
    border-color: #00695C;
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.1);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6B7280;
    font-style: italic;
}

/* Customer Modal Styles */
#edit-customer-modal .modal-content {
    max-width: 600px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

/* Responsive Design for Customer Management */
@media (max-width: 768px) {
    .customers-container {
        padding: 20px;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-controls input {
        width: 100%;
    }
    
    .customer-table th,
    .customer-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .customer-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .customer-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Settings Page Styles */
.settings-container {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.section-header h3 {
    color: #0F172A;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    color: #64748B;
    font-size: 14px;
    line-height: 1.5;
}

/* Company Info Form */
.company-info-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.company-info-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Backup Section */
.backup-setup {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.backup-status {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #E2E8F0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #EF4444;
    transition: background-color 0.3s ease;
}

.status-dot.connected {
    background: #10B981;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.backup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.backup-settings {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #E2E8F0;
}

.backup-settings h4 {
    color: #0F172A;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.backup-settings .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Invoice Items Management */
.invoice-items-management {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.add-item-section {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #E2E8F0;
}

.add-item-section h4 {
    color: #0F172A;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.items-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
    border-radius: 8px 8px 0 0;
}

.list-header h4 {
    color: #0F172A;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.search-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-controls input {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
}

.search-controls select {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* Items Table */
.items-table-container {
    overflow-x: auto;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.items-table th {
    background: #F8FAFC;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.items-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #0F172A;
    font-size: 14px;
}

.items-table tr:hover {
    background: #F8FAFC;
}

.items-table .item-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.item-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.item-action-btn.edit {
    background: #3B82F6;
    color: white;
}

.item-action-btn.edit:hover {
    background: #2563EB;
}

.item-action-btn.delete {
    background: #EF4444;
    color: white;
}

.item-action-btn.delete:hover {
    background: #DC2626;
}

.category-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.category-badge.fish {
    background: #DBEAFE;
    color: #1E40AF;
}

.category-badge.vegetables {
    background: #D1FAE5;
    color: #065F46;
}

.category-badge.spices {
    background: #FEF3C7;
    color: #92400E;
}

.category-badge.packaging {
    background: #E0E7FF;
    color: #3730A3;
}

.category-badge.other {
    background: #F3F4F6;
    color: #374151;
}

/* System Settings */
.system-settings {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-group {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #E2E8F0;
}

.setting-group h4 {
    color: #0F172A;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.setting-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkmark {
    display: none;
}

/* Button Icons */
.btn-icon {
    margin-right: 8px;
}

/* Modal Styles for Settings */
#edit-item-modal .modal-content {
    max-width: 600px;
}

#confirm-modal .modal-content {
    max-width: 400px;
}

#confirm-modal .modal-header h3 {
    color: #DC2626;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-container {
        padding: 20px;
    }
    
    .settings-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .company-info-form .form-row,
    .backup-settings .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .backup-actions {
        flex-direction: column;
    }
    
    .backup-actions .btn {
        width: 100%;
    }
    
    .list-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-controls input,
    .search-controls select {
        width: 100%;
    }
    
    .items-table th,
    .items-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .items-table .item-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .item-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .setting-actions {
        flex-direction: column;
    }
    
    .setting-actions .btn {
        width: 100%;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .settings-section {
        background: #1F2937;
        border-color: #374151;
    }

    .section-header {
        border-color: #374151;
    }

    .section-header h3,
    .section-header p {
        color: #F9FAFB;
    }

    .backup-status,
    .add-item-section,
    .setting-group {
        background: #374151;
        border-color: #4B5563;
    }

    .items-table th {
        background: #374151;
        color: #F9FAFB;
        border-color: #4B5563;
    }

    .items-table td {
        color: #F9FAFB;
        border-color: #374151;
    }

    .items-table tr:hover {
        background: #374151;
    }

    .list-header {
        background: #374151;
        border-color: #4B5563;
    }

    .list-header h4 {
        color: #F9FAFB;
    }
}

/* ================================
   Products Page Styles
   ================================ */
.products-container {
    display: grid;
    gap: 32px;
}

.add-product-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.add-product-section h3 {
    color: #00695C;
    margin-bottom: 24px;
    font-size: 20px;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.product-table tbody tr:hover {
    background-color: #F8FAFC;
}

.product-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.product-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.product-action-btn.edit:hover {
    background: #FDE68A;
}

.product-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.product-action-btn.delete:hover {
    background: #FECACA;
}

/* Edit Product Modal */
#edit-product-modal .modal-content {
    max-width: 600px;
}

/* ================================
   Suppliers Page Styles
   ================================ */
.suppliers-container {
    display: grid;
    gap: 32px;
}

.add-supplier-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.add-supplier-section h3 {
    color: #00695C;
    margin-bottom: 24px;
    font-size: 20px;
}

.supplier-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.supplier-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.supplier-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.supplier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.supplier-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.supplier-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.supplier-table tbody tr:hover {
    background-color: #F8FAFC;
}

.supplier-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.supplier-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.supplier-actions {
    display: flex;
    gap: 8px;
}

.supplier-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.supplier-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.supplier-action-btn.edit:hover {
    background: #FDE68A;
}

.supplier-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.supplier-action-btn.delete:hover {
    background: #FECACA;
}

/* Edit Supplier Modal */
#edit-supplier-modal .modal-content {
    max-width: 600px;
}

/* ================================
   Purchase Page Styles
   ================================ */
.purchase-container {
    display: grid;
    gap: 32px;
}

.add-purchase-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.add-purchase-section h3 {
    color: #00695C;
    margin-bottom: 24px;
    font-size: 20px;
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.purchase-items-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
}

.purchase-items-section h4 {
    color: #0F172A;
    margin-bottom: 16px;
    font-size: 16px;
}

.purchase-items-table {
    overflow-x: auto;
    margin-bottom: 16px;
}

#purchase-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

#purchase-items-table th {
    background: #00695C;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

#purchase-items-table td {
    padding: 12px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

#purchase-items-table input,
#purchase-items-table select {
    width: 100%;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

#purchase-items-table input:focus,
#purchase-items-table select:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.1);
}

.remove-purchase-item-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.2s ease;
}

.remove-purchase-item-btn:hover {
    background: #FECACA;
}

.purchase-summary {
    background: #E0F2F1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.purchase-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #B2DFDB;
}

.purchase-summary .summary-row:last-child {
    border-bottom: none;
}

.purchase-summary .summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #00695C;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #00695C;
}

.purchase-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.purchase-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.purchase-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.purchase-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchase-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.purchase-table tbody tr:hover {
    background-color: #F8FAFC;
}

.purchase-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.purchase-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.purchase-amount {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #00695C;
}

.purchase-actions {
    display: flex;
    gap: 8px;
}

.purchase-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.purchase-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.purchase-action-btn.edit:hover {
    background: #FDE68A;
}

.purchase-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.purchase-action-btn.delete:hover {
    background: #FECACA;
}

.purchase-action-btn.view {
    background: #DBEAFE;
    color: #1E40AF;
}

.purchase-action-btn.view:hover {
    background: #BFDBFE;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

/* ================================
   Sales Page Styles
   ================================ */
.sales-container {
    display: grid;
    gap: 32px;
}

.add-sale-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.add-sale-section h3 {
    color: #00695C;
    margin-bottom: 24px;
    font-size: 20px;
}

.sale-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sale-items-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
}

.sale-items-section h4 {
    color: #0F172A;
    margin-bottom: 16px;
    font-size: 16px;
}

.sale-items-table {
    overflow-x: auto;
    margin-bottom: 16px;
}

#sale-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

#sale-items-table th {
    background: #00695C;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

#sale-items-table td {
    padding: 12px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

#sale-items-table input,
#sale-items-table select {
    width: 100%;
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

#sale-items-table input:focus,
#sale-items-table select:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.1);
}

.stock-info {
    font-size: 12px;
    color: #475569;
    margin-top: 4px;
}

.stock-info.low {
    color: #DC2626;
    font-weight: 500;
}

.remove-sale-item-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.2s ease;
}

.remove-sale-item-btn:hover {
    background: #FECACA;
}

.sale-summary {
    background: #E0F2F1;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.sale-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #B2DFDB;
}

.sale-summary .summary-row:last-child {
    border-bottom: none;
}

.sale-summary .summary-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #00695C;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #00695C;
}

.sales-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sales-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sales-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sales-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.sales-table tbody tr:hover {
    background-color: #F8FAFC;
}

.sales-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.sales-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.sales-amount {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #16A34A;
}

.sales-actions {
    display: flex;
    gap: 8px;
}

.sales-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sales-action-btn.edit {
    background: #FEF3C7;
    color: #92400E;
}

.sales-action-btn.edit:hover {
    background: #FDE68A;
}

.sales-action-btn.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.sales-action-btn.delete:hover {
    background: #FECACA;
}

.sales-action-btn.view {
    background: #DBEAFE;
    color: #1E40AF;
}

.sales-action-btn.view:hover {
    background: #BFDBFE;
}

/* ================================
   Stock Page Styles
   ================================ */
.stock-container {
    display: grid;
    gap: 32px;
}

/* Stock Summary Cards */
.stock-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stock-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stock-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

.stock-card:first-child .stock-card-icon {
    background: #DBEAFE;
}

.stock-card:nth-child(2) .stock-card-icon {
    background: #FEE2E2;
}

.stock-card:nth-child(3) .stock-card-icon {
    background: #D1FAE5;
}

.stock-card-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.stock-card-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #0F172A;
}

/* Stock List Section */
.stock-list-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stock-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stock-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.stock-table tbody tr:hover {
    background-color: #F8FAFC;
}

.stock-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.stock-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.stock-value {
    text-align: right;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #00695C;
}

.stock-actions {
    display: flex;
    gap: 8px;
}

.stock-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stock-action-btn.adjust {
    background: #E0E7FF;
    color: #3730A3;
}

.stock-action-btn.adjust:hover {
    background: #C7D2FE;
}

.stock-action-btn.view {
    background: #DBEAFE;
    color: #1E40AF;
}

.stock-action-btn.view:hover {
    background: #BFDBFE;
}

/* Stock Status Badges */
.stock-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.stock-status-badge.in-stock {
    background: #D1FAE5;
    color: #065F46;
}

.stock-status-badge.low-stock {
    background: #FEF3C7;
    color: #92400E;
}

.stock-status-badge.out-of-stock {
    background: #FEE2E2;
    color: #DC2626;
}

.stock-status-badge.overstock {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Stock Movement Section */
.stock-movement-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.movement-table-container {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-top: 20px;
}

.movement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.movement-table th {
    background: #00695C;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movement-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.movement-table tbody tr:hover {
    background-color: #F8FAFC;
}

.movement-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.movement-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.movement-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.movement-type-badge.purchase {
    background: #D1FAE5;
    color: #065F46;
}

.movement-type-badge.sale {
    background: #FEE2E2;
    color: #DC2626;
}

.movement-type-badge.adjustment {
    background: #DBEAFE;
    color: #1E40AF;
}

.movement-quantity {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.movement-quantity.increase {
    color: #16A34A;
}

.movement-quantity.decrease {
    color: #DC2626;
}

/* ================================
   Responsive Design for New Pages
   ================================ */
@media (max-width: 1024px) {
    .add-product-section,
    .add-supplier-section,
    .add-purchase-section,
    .add-sale-section {
        padding: 24px;
    }

    .product-list-section,
    .supplier-list-section,
    .purchase-list-section,
    .sales-list-section,
    .stock-list-section,
    .stock-movement-section {
        padding: 24px;
    }

    .stock-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .add-product-section,
    .add-supplier-section,
    .add-purchase-section,
    .add-sale-section {
        padding: 20px;
    }

    .product-list-section,
    .supplier-list-section,
    .purchase-list-section,
    .sales-list-section,
    .stock-list-section,
    .stock-movement-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .list-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-controls {
        flex-direction: column;
        gap: 12px;
    }

    .search-controls input,
    .search-controls select {
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
        gap: 12px;
    }

    .filter-controls select,
    .filter-controls input {
        width: 100%;
    }

    .stock-summary-cards {
        grid-template-columns: 1fr;
    }

    .stock-card {
        flex-direction: column;
        text-align: center;
    }

    .stock-card-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .product-table,
    .supplier-table,
    .purchase-table,
    .sales-table,
    .stock-table,
    .movement-table {
        font-size: 12px;
    }

    .product-table th,
    .product-table td,
    .supplier-table th,
    .supplier-table td,
    .purchase-table th,
    .purchase-table td,
    .sales-table th,
    .sales-table td,
    .stock-table th,
    .stock-table td,
    .movement-table th,
    .movement-table td {
        padding: 10px 12px;
    }

    .product-actions,
    .supplier-actions,
    .purchase-actions,
    .sales-actions,
    .stock-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .product-action-btn,
    .supplier-action-btn,
    .purchase-action-btn,
    .sales-action-btn,
    .stock-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .purchase-summary,
    .sale-summary {
        padding: 16px;
    }

    .purchase-items-section,
    .sale-items-section {
        padding: 16px;
    }

    #purchase-items-table,
    #sale-items-table {
        font-size: 12px;
    }

    #purchase-items-table th,
    #purchase-items-table td,
    #sale-items-table th,
    #sale-items-table td {
        padding: 8px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #edit-product-modal .modal-content,
    #edit-supplier-modal .modal-content {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .add-product-section,
    .add-supplier-section,
    .add-purchase-section,
    .add-sale-section {
        padding: 16px;
    }

    .product-list-section,
    .supplier-list-section,
    .purchase-list-section,
    .sales-list-section,
    .stock-list-section,
    .stock-movement-section {
        padding: 16px;
    }

    .add-product-section h3,
    .add-supplier-section h3,
    .add-purchase-section h3,
    .add-sale-section h3 {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .stock-card-value {
        font-size: 24px;
    }

    .purchase-summary .summary-row.total,
    .sale-summary .summary-row.total {
        font-size: 16px;
    }
}

/* ================================
   Print Styles for New Pages
   ================================ */
@media print {
    .add-product-section,
    .add-supplier-section,
    .add-purchase-section,
    .add-sale-section,
    .form-actions,
    .btn {
        display: none !important;
    }

    .product-table,
    .supplier-table,
    .purchase-table,
    .sales-table,
    .stock-table,
    .movement-table {
        border: 1px solid #ccc;
    }

    .product-table th,
    .supplier-table th,
    .purchase-table th,
    .sales-table th,
    .stock-table th,
    .movement-table th {
        background: #f0f0f0 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .stock-summary-cards {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .stock-card {
        box-shadow: none;
        border: 1px solid #ccc;
        flex: 1;
        min-width: 150px;
    }
}/* ================================
   Authentication System Styles
   ================================ */

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #00695C 0%, #004D40 100%);
    color: white;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-logo .logo-icon {
    font-size: 36px;
}

.landing-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.landing-nav {
    display: flex;
    gap: 12px;
}

.landing-nav .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.landing-nav .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-buttons .btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.hero-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.preview-dashboard {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-header {
    background: #00695C;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-logo {
    font-weight: 600;
    color: white;
}

.preview-user {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.preview-card {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-card span:first-child {
    font-size: 24px;
}

.preview-card span:last-child {
    font-weight: 700;
    color: #00695C;
    font-size: 14px;
}

.preview-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
    padding: 0 20px 20px;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, #00897B 0%, #00695C 100%);
    border-radius: 4px 4px 0 0;
}

.features-section {
    padding: 80px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.landing-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.landing-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: #00695C;
    padding: 40px 32px;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.login-logo .logo-icon {
    font-size: 40px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

.login-form {
    padding: 32px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.login-form .form-group input {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password-btn:hover {
    opacity: 1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4B5563;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00897B;
}

.forgot-password {
    font-size: 14px;
    color: #00897B;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEE2E2;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #DC2626;
    font-size: 14px;
}

.login-error span:first-child {
    font-size: 18px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
}

.login-footer {
    padding: 24px 32px;
    background: #F8FAFC;
    text-align: center;
}

.login-footer p {
    color: #4B5563;
    font-size: 14px;
    margin-bottom: 16px;
}

.link-btn {
    background: none;
    border: none;
    color: #00897C;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: none;
}

.link-btn:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6B7280;
}

.back-btn:hover {
    color: #374151;
}

/* Register Page Styles */
.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.register-container {
    width: 100%;
    max-width: 520px;
}

.register-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.register-header {
    background: #00695C;
    padding: 40px 32px;
    text-align: center;
}

.register-header .login-logo {
    margin-bottom: 12px;
}

.register-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

.register-form {
    padding: 32px;
}

.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.register-form .form-group {
    margin-bottom: 16px;
}

.register-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.register-form .form-group input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.register-form .form-group input:focus {
    outline: none;
    border-color: #00897B;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6B7280;
}

/* Dashboard Container Styles */
.dashboard-container {
    display: none;
}

.dashboard-container.active {
    display: flex;
}

/* Page Transition Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Landing page fade in animation */
#landing-page {
    animation: fadeIn 0.5s ease;
}

/* Login/Register page animations */
#login-page,
#register-page {
    animation: slideDown 0.3s ease;
}

/* Dashboard container animation */
#dashboard-container {
    animation: fadeIn 0.5s ease;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-preview {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .landing-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .landing-logo h1 {
        font-size: 24px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-lg {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-cards {
        grid-template-columns: 1fr;
    }
    
    .register-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-header,
    .register-header {
        padding: 32px 24px;
    }
    
    .login-form,
    .register-form {
        padding: 24px;
    }
    
    .login-footer,
    .register-footer {
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 0 16px;
    }
    
    .landing-hero {
        padding: 48px 0;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .features-section {
        padding: 48px 0;
    }
    
    .features-section h2 {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .login-card,
    .register-card {
        border-radius: 12px;
    }
}

/* Print Styles */
@media print {
    .landing-page,
    .login-page,
    .register-page {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-page,
    .register-page {
        background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    }
    
    .login-card,
    .register-card {
        background: #1F2937;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .login-header,
    .register-header {
        background: #00695C;
    }
    
    .login-logo h1,
    .register-header .login-logo h1 {
        color: white;
    }
    
    .login-form .form-group label {
        color: #F3F4F6;
    }
    
    .login-form .form-group input {
        background: #374151;
        border-color: #4B5563;
        color: white;
    }
    
    .login-form .form-group input:focus {
        border-color: #00897B;
    }
    
    .checkbox-label {
        color: #9CA3AF;
    }
    
    .login-footer {
        background: #111827;
    }
    
    .login-footer p {
        color: #9CA3AF;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message Styles */
.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #D1FAE5;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #065F46;
    font-size: 14px;
}

.success-message span:first-child {
    font-size: 18px;
}

/* Validation Styles */
.form-group.error input {
    border-color: #DC2626 !important;
}

.error-message {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}
