/* Modern Professional UI Enhancements */
body {
    font-family: 'Yekan Bakh', 'Shabnam', sans-serif;
    color: #333;
    background-color: #f4f7f6 !important;
}

/* Gradient Primary Color */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%) !important;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: bold;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-weight: 600;
}
.table tbody tr {
    transition: background-color 0.2s;
}
.table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    border-color: #4e4376;
    box-shadow: 0 0 0 0.25rem rgba(78, 67, 118, 0.25);
}

/* Navbar */
.navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 2px;
    transition: background-color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Print specific styles for invoice */
@media print {
    @page { size: A4; margin: 10mm; }
    body {
        background-color: white !important;
        font-family: 'Yekan Bakh', 'Shabnam', sans-serif !important;
        font-size: 13pt;
        color: #000;
    }
    .d-print-none {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0;
        margin: 0;
    }
    .print-container {
        border: none !important;
        box-shadow: none !important;
    }
    .print-container .card-body {
        padding: 0 !important;
    }
    /* Invoice specific print enhancements */
    .invoice-table th {
        background-color: #eee !important;
        -webkit-print-color-adjust: exact;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    .invoice-table td, .invoice-table th {
        border: 1px solid #ccc !important;
    }
    
    .invoice-header-box {
        border: 2px solid #333 !important;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .invoice-stamp-box {
        border: 2px dashed #999 !important;
        border-radius: 12px;
        height: 120px;
        width: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        color: #777;
    }
}
