@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --bg-color: #f8f9fa;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
}

.urdu-text {
    font-family: var(--font-urdu);
    direction: rtl;
}

/* Khata Table - Specific Ledger Style */
.khata-table-container {
    overflow-x: auto;
    border: 2px solid #ef4444;
    border-radius: 4px;
    background: #fff;
}

.form-control {
    height: 49px;
    font-size: 17px;
    padding-top: 0;
}

.khata-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
    font-family: var(--font-urdu);
}

.khata-table th,
.khata-table td {
    border: 1px solid #ef4444;
    padding: 0.75rem;
    vertical-align: middle;
}


.khata-table th {
    background: #fef2f2;
    /* Light red/pink tint */
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid #ef4444;
}

.khata-table td {
    height: 2.5rem;
}

/* Bootstrap Overrides/Tweaks if necessary */
.form-label {
    font-weight: 500;
}

/* Amount Input - remove spin buttons optionally or keep native behavior */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.transition-transform {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-transform:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.table-row-hover .edit-entry-btn {
    opacity: 0;
    transition: opacity 0.2s;
    visibility: hidden;
}

form .btn {
    height: 49px !important;
    padding-top: 0;
}

.btn-primary {
    background-color: #01743A !important;
    border-color: #01743A !important;
}

.py-2 {
    padding-top: .5rem !important;
    padding-bottom: .8rem !important;
}

.table-row-hover:hover .edit-entry-btn {
    opacity: 1;
    visibility: visible;
}

#accountForm select {
    line-height: 2 !important;
}

#accountForm option {
    font-size: 15px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 2 !important;
}

.select2-container--bootstrap-5 .select2-selection {
    height: 45px !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    background-position: left .75rem center !important;
    padding: 5px !important;
}

/* Navbar Custom Buttons */
.navbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 42px !important;
    border-radius: 12px;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-btn:hover {
    background-color: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.navbar-btn:hover svg {
    transform: scale(1.1);
}

/* Logout Specific */
.navbar-btn-danger {
    color: #ef4444;
    border-color: #fee2e2;
    background: #fff5f5;
}

.navbar-btn-danger:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

/* Pagination Custom */
.pagination-input-custom {
    height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    width: 70px !important;
    padding: 0 10px;
    transition: all 0.2s;
}

.pagination-input-custom:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

@media only screen and (max-width: 768px) {
    .hover-lift {
        transform: none !important;
    }

    .khata-table .khata-details {
        min-width: 200px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

.nav-pills .nav-link {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background-color: #757475;
    color: #fff;
    font-weight: 600;
}

.account-card .dropdown-toggle::after {
    display: none;
}