/* 
 * Invoicing System - Professional Responsive CSS
 * Modern Design with Enhanced Visual Hierarchy
 */

/* ==============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================== */

/* Base responsive improvements */

.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

* {
    box-sizing: border-box;
}

/* Improved container responsiveness */
.container {
    max-width: 1400px;
    padding: 0 0.25rem;
    width: 100%;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 0.75rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 1.25rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 1.5rem;
    }
}

/* Enhanced navbar responsiveness */
.navbar-custom {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%) !important;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.875rem;
    }
}

/* Enhanced dropdown responsiveness */
.navbar-custom .dropdown-menu {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

@media (max-width: 768px) {
    .navbar-custom .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
    border-radius: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-custom .dropdown-item {
        color: white !important;
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-custom .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Enhanced card responsiveness */
.card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
.card {
    border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 576px) {
    .card {
    border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .card-header {
        padding: 0.75rem 0.875rem;
    }
}

/* Enhanced table responsiveness */
.table-responsive {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e2e8f0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0.75rem;
        font-size: 0.875rem;
    }
    
    .table thead th {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.625rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        border-radius: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .table thead th {
        padding: 0.5rem 0.375rem;
        font-size: 0.6875rem;
    }
    
    .table tbody td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
    }
    
    /* Stack table on very small screens */
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }
    
    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    
    .table-responsive td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .table-responsive td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0.5rem;
        width: 45%;
    font-weight: 600;
        color: #374151;
    }
}

/* Enhanced button responsiveness */
.btn {
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    border-radius: 0.5rem;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Enhanced form responsiveness */
.form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

@media (max-width: 768px) {
    .form-control, .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }
}

@media (max-width: 576px) {
    .form-control, .form-select {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
        border-radius: 0.375rem;
    }
}

/* Enhanced modal responsiveness */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: 1rem;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .modal-content {
        border-radius: 0.75rem;
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.875rem 1rem;
    }
}

/* Enhanced page header responsiveness */
.page-header {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

@media (max-width: 768px) {
    .page-header {
    padding: 1rem;
    margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .page-header p {
        font-size: 0.8125rem;
    }
}

/* Enhanced action buttons responsiveness */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-buttons {
        gap: 0.375rem;
    }
    
    .action-buttons .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .action-buttons .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        flex: 1;
        min-width: 0;
    }
}

/* Enhanced footer responsiveness */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 1rem 0 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.75rem 0 0.75rem;
    }
    
    .footer-brand h5 {
        font-size: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.8125rem;
    }
    
    .footer-title {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.8125rem;
    }
    
    .footer-contact p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 0.5rem 0 0.5rem;
    }
    
    .footer-brand h5 {
        font-size: 0.875rem;
    }
    
    .footer-brand p {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-contact p {
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Enhanced grid responsiveness */
.row {
    margin-left: -0.125rem;
    margin-right: -0.125rem;
}

@media (max-width: 576px) {
    .row {
        margin-left: -0.0625rem;
        margin-right: -0.0625rem;
    }
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

@media (max-width: 576px) {
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
        padding-left: 0.0625rem;
        padding-right: 0.0625rem;
    }
}

/* Enhanced alert responsiveness */
.alert {
    position: absolute; /* or relative to parent */
    top: 20px;
    right: 20px;
    border-radius: 1rem;
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f8d7da; /* danger */
    color: #721c24;
    z-index: 10;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .alert {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .alert {
        padding: 0.625rem 0.875rem;
        border-radius: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Enhanced badge responsiveness */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        border-radius: 0.375rem;
    }
}

/* Enhanced status badge responsiveness */
.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 576px) {
    .status-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.75rem;
        border-radius: 1.5rem;
    }
}

/* Enhanced invoice summary responsiveness */
.invoice-summary {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .invoice-summary {
    border-radius: 0.75rem;
}

    .invoice-summary-row {
    padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .invoice-summary-total {
        padding: 0.875rem 1rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 1rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .invoice-summary {
    border-radius: 0.5rem;
    }
    
    .invoice-summary-row {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .invoice-summary-total {
        padding: 0.75rem 0.875rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 0.95rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.0625rem;
    }
}

/* Enhanced dashboard card responsiveness */
.dashboard-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .dashboard-card {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .dashboard-card {
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(30, 64, 175, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
    }
}

/* Enhanced dropdown mobile behavior */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .dropdown-item {
        color: white !important;
        padding: 0.5rem 0.75rem;
        border-radius: 0.375rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Enhanced form group responsiveness */
.form-group {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-group {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced text responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.875rem; }
    h6 { font-size: 0.8125rem; }
}

/* Enhanced spacing responsiveness */
@media (max-width: 768px) {
    .mt-4 { margin-top: 1rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .pt-4 { padding-top: 1rem !important; }
    .pb-4 { padding-bottom: 1rem !important; }
}

@media (max-width: 576px) {
    .mt-4 { margin-top: 0.75rem !important; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .pt-4 { padding-top: 0.75rem !important; }
    .pb-4 { padding-bottom: 0.75rem !important; }
}

/* ==============================================
   STICKY FOOTER LAYOUT
   ============================================== */

/* Page wrapper for sticky footer */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
}

/* Footer positioning */
.footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Ensure body takes full height */
body {
    background-color: #f8fafc !important;
    color: #1a202c !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ==============================================
   BASE STYLES & GLOBAL OVERRIDES
   ============================================== */

/* Set white background and black text */
body {
    background-color: #f8fafc !important;
    color: #1a202c !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* Professional blue gradient navbar */
.navbar-custom .navbar-brand {
    color: white !important;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
        font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-custom .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .dropdown-item {
    color: #374151 !important;
    font-weight: 500;
        padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1e40af !important;
    transform: translateX(2px);
}

.navbar-custom .dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Ensure all text is properly colored */
* {
    color: #1a202c !important;
}

/* Override any dark theme styles */
[data-bs-theme="light"] {
    --bs-body-color: #1a202c !important;
    --bs-body-bg: #f8fafc !important;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    --bs-secondary: #64748b;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
}

/* Professional navigation */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: white !important;
}

/* Container and layout improvements */
main.container {
    padding: 0 0.25rem;
    margin-top: 0.5rem;
    max-width: 1400px;
}

/* Enhanced responsive tables */
.table-responsive {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e2e8f0;
    margin: 0;
    width: 100%;
}

/* Professional card styling */
    .card {
        border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #1e293b;
    }
    
    .card-body {
    padding: 1.25rem;
    }
    
    .card-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Enhanced header sections */
.page-header {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.page-header h1 {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.page-header p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Action button groups */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Professional buttons */
.btn {
        font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
}

/* Invoice specific styling */
.invoice-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    width: 100%;
}

.invoice-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #3b82f6;
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invoice-table td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.seller-info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Light theme overrides */
[data-bs-theme="light"] .invoice-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
}

[data-bs-theme="light"] .seller-info-box {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Mobile-friendly card improvements */
.mobile-friendly-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    width: 100%;
}

.mobile-friendly-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.mobile-friendly-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
/* Dashboard specific styling */
.dashboard-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

/* Form styling */
    .form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    }
    
    .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* Alert styling */
.alert {
    position: absolute; /* or relative to parent */
    top: 20px;
    right: 20px;
    border-radius: 1rem;
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #f8d7da; /* danger */
    color: #721c24;
    z-index: 10;
    transition: opacity 0.5s ease-in-out;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #155e75;
}

/* Badge styling */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.625rem;
        border-radius: 0.5rem;
    font-size: 0.75rem;
}

/* Modal styling */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

/* Table styling */
.table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #3b82f6;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 0.875rem 0.75rem;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Compact table for better space usage */
.table-compact thead th {
    padding: 0.625rem 0.5rem;
    font-size: 0.6875rem;
}

.table-compact tbody td {
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
}

/* Action buttons in tables */
.table .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    margin: 0 0.125rem;
}

.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ==============================================
   PROFESSIONAL FOOTER STYLING
   ============================================== */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 1rem 0 1rem;
    position: relative;
    overflow: hidden;
        width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

/* Footer Brand Section */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-brand h5 {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
        margin-bottom: 0;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
        display: flex;
        align-items: center;
        justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer Titles */
.footer-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(4px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Contact */
.footer-contact p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: #3b82f6;
    width: 1rem;
    text-align: center;
}

/* Footer Divider */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #475569, transparent);
    margin: 2rem 0 1.5rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 0.001rem;
}

.footer-copyright {
    color: #64748b;
        font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3b82f6;
}

.footer-legal .separator {
    color: #475569;
    font-weight: 600;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand h5 {
        font-size: 1.125rem;
    }
    
    .footer-brand p {
        font-size: 0.875rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .footer-contact p {
        font-size: 0.875rem;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .footer-legal .separator {
        display: none;
    }
}

/* Footer Animation */
.footer {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Hover Effects */
.footer-brand:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Footer Gradient Overlay */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Footer Content Positioning */
.footer .container {
    position: relative;
    z-index: 1;
}

/* Footer Link Icons */
.footer-links a[href*="help"]::before {
    content: '?';
    margin-right: 0.5rem;
    color: #3b82f6;
    font-weight: bold;
}

.footer-links a[href*="contact"]::before {
    content: '📧';
    margin-right: 0.5rem;
}

.footer-links a[href*="about"]::before {
    content: 'ℹ️';
    margin-right: 0.5rem;
}

/* Footer Status Indicator */
.footer::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

/* Professional spacing utilities */
.p-mobile {
    padding: 1rem;
}

@media (min-width: 768px) {
    .p-mobile {
        padding: 1.5rem;
    }
}

/* Enhanced focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--bs-primary);
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Professional transitions */
.card,
.btn,
.form-control,
.form-select,
.nav-link,
.dropdown-item {
    transition: all 0.15s ease-in-out;
}

/* Enhanced hover states */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-1px);
}

/* ==============================================
   MOBILE CARD COMPONENTS
   ============================================== */

/* Mobile card layouts for responsive tables */
.mobile-card-item {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.15s ease-in-out;
    word-break: break-word; /* NEW: prevent overflow in card */
}

.mobile-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    gap: 0.5rem; /* NEW: ensures badge/title don't overlap */
    flex-wrap: wrap; /* NEW: allows wrapping on small screens */
}

.mobile-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.25rem;
    word-break: break-word; /* NEW: prevents breaking layout */
}

.mobile-card-subtitle {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* NEW: better wrapping for icons/text */
}

.mobile-card-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap; /* NEW: keeps badge text inline */
}

.mobile-card-body {
    margin-bottom: 1rem;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-border-color-subtle);
    flex-wrap: wrap; /* NEW: stops overflow for long values */
    gap: 0.25rem; /* NEW: adds spacing when wrapped */
}

.mobile-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-card-label {
    font-weight: 500;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    flex: 1; /* NEW: ensures label aligns left consistently */
    min-width: 40%; /* NEW: prevents squishing */
}

.mobile-card-value {
    font-weight: 500;
    color: var(--bs-body-color);
    text-align: right;
    flex-shrink: 0;
    margin-left: 1rem;
    max-width: 55%; /* NEW: restricts long PAN/GST */
    overflow: hidden; /* NEW */
    text-overflow: ellipsis; /* NEW: adds "..." for overflow */
    white-space: nowrap; /* NEW: keeps value on single line */
}

.mobile-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

.mobile-card-actions .btn {
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 0.875rem;
}


/* Client preview box styling */
.client-preview-box {
    background-color: var(--bs-gray-50);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="light"] .client-preview-box {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Seller info box styling for invoice template */
.seller-info-box {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: var(--bs-gray-50);
    height: 100%;
}

[data-bs-theme="light"] .seller-info-box {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ==============================================
   CUSTOM COMPONENTS
   ============================================== */

/* Professional invoice styling */
.invoice-container {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .invoice-container {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

/* Professional status badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Professional data visualization */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
}

/* Main container adjustments */
main.container {
    padding: 0 0.25rem;
    margin-top: 0.5rem;
    max-width: 1400px;
}

/* Row and column adjustments */
.row {
    margin-left: -0.125rem;
    margin-right: -0.125rem;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 0.125rem;
    }
    
    main.container {
        padding: 0 0.125rem;
        margin-top: 0.25rem;
    }
    
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.0625rem;
    }
    
    main.container {
        padding: 0 0.0625rem;
    }
    
    .row {
        margin-left: -0.0625rem;
        margin-right: -0.0625rem;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
        padding-left: 0.0625rem;
        padding-right: 0.0625rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
        padding: 0 0.5rem;
    }
    
    main.container {
        max-width: 1600px;
        padding: 0 0.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1800px;
        padding: 0 1rem;
    }
    
    main.container {
        max-width: 1800px;
        padding: 0 1rem;
    }
}

/* Financial Summary Component - Perfect Styling */
.invoice-summary {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    font-weight: 500;
}

.invoice-summary-row:last-child {
    border-bottom: none;
}

.invoice-summary-label {
    color: #374151;
    font-weight: 600;
}

.invoice-summary-amount {
    color: #1e293b;
    font-weight: 700;
    text-align: right;
    font-family: 'Inter', monospace;
}

.invoice-summary-total {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 0 0 1rem 1rem;
}

.invoice-summary-total .invoice-summary-label {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1.1rem;
}

.invoice-summary-total .invoice-summary-amount {
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
}

/* Alternative compact version */
.invoice-summary-compact {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.invoice-summary-compact .invoice-summary-row {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.invoice-summary-compact .invoice-summary-total {
    padding: 0.75rem 1rem;
}

.invoice-summary-compact .invoice-summary-total .invoice-summary-label {
    font-size: 1rem;
}

.invoice-summary-compact .invoice-summary-total .invoice-summary-amount {
    font-size: 1.125rem;
}

/* Responsive adjustments for financial components */
@media (max-width: 768px) {
    .invoice-summary-row {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .invoice-summary-total {
        padding: 0.875rem 1rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 1rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .invoice-summary-row {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .invoice-summary-total {
        padding: 0.75rem 0.875rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 0.95rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.0625rem;
    }
}

/* Enhanced table styling for better space utilization */
.table-responsive {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e2e8f0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #3b82f6;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 0.875rem 0.75rem;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Compact table for better space usage */
.table-compact thead th {
    padding: 0.625rem 0.5rem;
    font-size: 0.6875rem;
}

.table-compact tbody td {
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
}

/* Action buttons in tables */
.table .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    margin: 0 0.125rem;
}

.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ==============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================== */

/* Base responsive improvements */
* {
    box-sizing: border-box;
}

/* Improved container responsiveness */
.container {
    max-width: 1400px;
    padding: 0 0.25rem;
    width: 100%;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 0.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 0.75rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 1rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 1.25rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 1.5rem;
    }
}

/* Enhanced navbar responsiveness */
.navbar-custom {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%) !important;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-custom .navbar-nav .nav-link {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.875rem;
    }
}

/* Enhanced dropdown responsiveness */
.navbar-custom .dropdown-menu {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

@media (max-width: 768px) {
    .navbar-custom .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        border-radius: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-custom .dropdown-item {
        color: white !important;
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-custom .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Enhanced card responsiveness */
.card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .card {
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .card-header {
        padding: 0.75rem 0.875rem;
    }
}

/* Enhanced table responsiveness */
.table-responsive {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e2e8f0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0.75rem;
        font-size: 0.875rem;
    }
    
    .table thead th {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.625rem 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        border-radius: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .table thead th {
        padding: 0.5rem 0.375rem;
        font-size: 0.6875rem;
    }
    
    .table tbody td {
        padding: 0.5rem 0.375rem;
        font-size: 0.8125rem;
    }
    
    /* Stack table on very small screens */
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }
    
    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }
    
    .table-responsive td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .table-responsive td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0.5rem;
        width: 45%;
        font-weight: 600;
        color: #374151;
    }
}

/* Enhanced button responsiveness */
.btn {
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 0.5rem;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Enhanced form responsiveness */
.form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

@media (max-width: 768px) {
    .form-control, .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
    }
}

@media (max-width: 576px) {
    .form-control, .form-select {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
        border-radius: 0.375rem;
    }
}

/* Enhanced modal responsiveness */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: 1rem;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .modal-content {
        border-radius: 0.75rem;
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.875rem 1rem;
    }
}

/* Enhanced page header responsiveness */
.page-header {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .page-header p {
        font-size: 0.8125rem;
    }
}

/* Enhanced action buttons responsiveness */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-buttons {
        gap: 0.375rem;
    }
    
    .action-buttons .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .action-buttons .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        flex: 1;
        min-width: 0;
    }
}

/* Enhanced footer responsiveness */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 1rem 0 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.75rem 0 0.75rem;
    }
    
    .footer-brand h5 {
        font-size: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.8125rem;
    }
    
    .footer-title {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.8125rem;
    }
    
    .footer-contact p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 0.5rem 0 0.5rem;
    }
    
    .footer-brand h5 {
        font-size: 0.875rem;
    }
    
    .footer-brand p {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-contact p {
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Enhanced grid responsiveness */
.row {
    margin-left: -0.125rem;
    margin-right: -0.125rem;
}

@media (max-width: 576px) {
    .row {
        margin-left: -0.0625rem;
        margin-right: -0.0625rem;
    }
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

@media (max-width: 576px) {
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
    .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
        padding-left: 0.0625rem;
        padding-right: 0.0625rem;
    }
}

/* Enhanced alert responsiveness */
.alert {
    border-radius: 1rem;
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .alert {
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .alert {
        padding: 0.625rem 0.875rem;
        border-radius: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Enhanced badge responsiveness */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        border-radius: 0.375rem;
    }
}

/* Enhanced status badge responsiveness */
.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 576px) {
    .status-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.75rem;
        border-radius: 1.5rem;
    }
}

/* Enhanced invoice summary responsiveness */
.invoice-summary {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .invoice-summary {
        border-radius: 0.75rem;
    }
    
    .invoice-summary-row {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .invoice-summary-total {
        padding: 0.875rem 1rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 1rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .invoice-summary {
        border-radius: 0.5rem;
    }
    
    .invoice-summary-row {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .invoice-summary-total {
        padding: 0.75rem 0.875rem;
    }
    
    .invoice-summary-total .invoice-summary-label {
        font-size: 0.95rem;
    }
    
    .invoice-summary-total .invoice-summary-amount {
        font-size: 1.0625rem;
    }
}

/* Enhanced dashboard card responsiveness */
.dashboard-card {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .dashboard-card {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .dashboard-card {
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(30, 64, 175, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
    }
}

/* Enhanced dropdown mobile behavior */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .dropdown-item {
        color: white !important;
        padding: 0.5rem 0.75rem;
        border-radius: 0.375rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
}

/* Enhanced form group responsiveness */
.form-group {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .form-group {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced text responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.875rem; }
    h6 { font-size: 0.8125rem; }
}

/* Enhanced spacing responsiveness */
@media (max-width: 768px) {
    .mt-4 { margin-top: 1rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .pt-4 { padding-top: 1rem !important; }
    .pb-4 { padding-bottom: 1rem !important; }
}

@media (max-width: 576px) {
    .mt-4 { margin-top: 0.75rem !important; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .pt-4 { padding-top: 0.75rem !important; }
    .pb-4 { padding-bottom: 0.75rem !important; }
}



/* Default Bootswatch-like gradient palettes */

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff15, #007bff08);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #19875415, #19875408);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #fd7e1415, #fd7e1408);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf015, #0dcaf008);
}

.border-start-primary {
    border-left: 4px solid #007bff !important;
}

.border-start-success {
    border-left: 4px solid #198754 !important;
}

.border-start-warning {
    border-left: 4px solid #fd7e14 !important;
}

.border-start-info {
    border-left: 4px solid #0dcaf0 !important;
}

/* Slight card elevation */
.card.shadow-sm:hover {
    transform: translateY(-3px);
    transition: .2s ease;
}

.card .btn-light {
    transition: all 0.25s ease;
    font-weight: 500;
    border-radius: 8px;
}

/* Premium hover effect */
.card .btn-light:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Optional: softer press effect */
.card .btn-light:active {
    transform: scale(0.97);
}