/* All headings, titles, navbar title, buttons etc use Nunito */
h1, h2, h3, .fw-bold, .navbar-mobile h5, .cart-badge, .category-chip, 
.btn, .nav-item-bottom span, .tagline, .flag-badge, .price-row-grid .current-price-grid,
.product-name-grid, .qty-number-grid, .family-tab-btn, .profile-edit-btn, .btn-checkout,
.layout-btn, .cart-summary .fw-bold, .order-card strong, .mobile-bottom-nav .nav-item-bottom span {
    font-family: 'Nunito', sans-serif;
}
body { 
    background: #f0f4f8; 
    margin: 0;  
    font-family: 'Mooli', 'Segoe UI', system-ui, cursive, sans-serif;
    padding-bottom: 80px; 
}

/* Technology Blue Theme Colors */
:root {
    --primary-blue: #1a73e8;
    --secondary-blue: #4a90d9;
    --light-blue: #e8f0fe;
    --dark-blues: #0d47a1;
    --accent-cyan: #00bcd4;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --dark: #1a1a2e;
    --saffron: #8e7000;
    --white: #FFFFFF;
    --green: #80147a;
    --dark-blue: #00bcd4;
    --light-gray: #e8f0fe;
}



/* Header with technology blue gradient */
.navbar-top {
    background: linear-gradient(135deg, #a28000 0%, #801414 50%, #8e0080 100%);
    padding: 10px 15px;
    box-shadow: 2px 1px 10px rgb(5 5 5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-top .brand {
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-top .brand i {
    color: var(--dark-blue);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(26, 115, 232, 0.15);
    z-index: 1000;
    padding: 5px 0;
}

.bottom-nav .nav-item {
    text-align: center;
    padding: 5px 0;
    color: #666;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active {
    color: var(--saffron);
}

.bottom-nav .nav-item i {
    font-size: 1.5rem;
    display: block;
}

.bottom-nav .nav-item span {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

/* Cards */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 5px 5px 25px 0px rgb(84 80 70);
    margin-bottom: 15px;
    background-color: #fff8dd;
}
.card-gold-dark { background-color: #665800; box-shadow: 2px 2px 11px rgb(2 2 2);}
.card-gold { background-color: #996f1447;     box-shadow: 5px 5px 25px 0px rgb(84 80 70)}
.card-pink { background-color: #ffe0e0;     box-shadow: 5px 5px 25px 0px rgb(84 80 70)}

.card-header {
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 12px 20px;
    font-weight: bold;
}

/* Customer cards */
.customer-card {
    background: #fbffee;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid var(--saffron);
}

.customer-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
}

.customer-card .amount-positive {
    color: #2e7d32;
    font-weight: bold;
}

.customer-card .amount-negative {
    color: #c62828;
    font-weight: bold;
}

/* Transaction items */
.transaction-item-old {
    border-left: 4px solid var(--saffron);
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(26, 115, 232, 0.05);
}

.transaction-item {
    background: white;
    padding: 5px 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(26, 115, 232, 0.05);
    border-bottom: 2px solid var(--saffron);
    /* border-top: 2px solid var(--saffron); */
    /* border-right: 1px solid var(--primary-blue);
    border-left: 1px solid var(--primary-blue); */
}

.transaction-item .cr {
    color: #2e7d32;
}

.transaction-item .dr {
    color: #c62828;
}

/* Buttons */
.btn-saffron {
    background-color: var(--saffron);
    color: white;
    border: none;
}

.btn-saffron:hover {
    background-color: #0d47a1;
    color: white;
}

.btn-green {
    background-color: var(--green);
    color: white;
    border: none;
}

.btn-green:hover {
    background-color: #0a3a7a;
    color: white;
}

/* Summary Cards */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
    margin-bottom: 15px;
}

.summary-card .amount {
    font-size: 1.8rem;
    font-weight: bold;
}

.summary-card .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.summary-card.receivable {
    border-top: 4px solid #2e7d32;
}

.summary-card.payable {
    border-top: 4px solid #c62828;
}

.summary-card.total {
    border-top: 4px solid var(--saffron);
}

/* Form styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.15);
}

/* Modal styles */
.modal-content {
    border-radius: 20px;
}

.modal-header {
    background: linear-gradient(135deg, var(--saffron), var(--green));
    color: white;
    border-radius: 20px 20px 0 0;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Search bar */
.search-bar {
    background: white;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    padding: 8px 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 576px) {
    .navbar-top .brand {
        font-size: 1.2rem;
    }
    
    .summary-card .amount {
        font-size: 1.4rem;
    }
    
    .bottom-nav .nav-item i {
        font-size: 1.5rem;
    }
    
    .bottom-nav .nav-item span {
        font-size: 13px;
        font-weight: bold;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .bottom-nav, .navbar-top, .no-print {
        display: none !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Transaction type button group */
.btn-group .btn-check:checked + .btn-outline-success {
    background-color: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-group .btn-check:checked + .btn-outline-danger {
    background-color: #c62828;
    color: white;
    border-color: #c62828;
}

.btn-group .btn {
    padding: 10px 8px;
    font-size: 0.85rem;
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 8px 0 0 8px;
}

.btn-group .btn:last-child {
    border-radius: 0 8px 8px 0;
}

.btn-group .btn i {
    margin-right: 5px;
}

/* Badge styles */
.badge i {
    margin-right: 4px;
}

/* Transaction item improvements */
.transaction-item .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Table styles */
.table-saffron {
    background-color: var(--saffron);
    color: white;
}

.table-saffron th {
    border-bottom: none;
    padding: 10px 12px;
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(26, 115, 232, 0.03);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(26, 115, 232, 0.06);
}

/* Summary cards in reports */
.summary-card .amount {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .summary-card .amount {
        font-size: 1rem;
    }
    .table-responsive {
        font-size: 0.8rem;
    }
    .table-responsive .badge {
        font-size: 0.6rem;
    }
}


/* Tech accent highlight */
.tech-highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tech border effect */
.tech-border {
    border: 1px solid rgba(26, 115, 232, 0.2);
}

/* Tech glow effect */
.tech-glow:hover {
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.2);
}

/* Status indicators */
.status-active {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}

.status-inactive {
    color: #c62828;
    background: rgba(198, 40, 40, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
}