/* Mayura Creations Software Solutions Billing System Styling */

:root {
    --primary-blue: #007cb9;
    --dark-navy: #003a70;
    --light-blue: #e6f4fa;
    --accent-teal: #00a4e4;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 15px rgba(0, 58, 112, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 25px;
    padding-bottom: 40px;
}

/* Navbar Styling */
.navbar-mayura {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar-mayura .navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-mayura .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-mayura .nav-link:hover,
.navbar-mayura .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Cards & Widgets */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card {
    border-left: 5px solid var(--primary-blue);
}

.stat-card.revenue { border-left-color: #28a745; }
.stat-card.pending { border-left-color: #ffc107; }
.stat-card.paid { border-left-color: #17a2b8; }
.stat-card.clients { border-left-color: #6f42c1; }

.stat-card .stat-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background-color: #ebf3f8;
    color: var(--dark-navy);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
    padding: 12px 15px;
}

.table-custom tbody tr:hover {
    background-color: rgba(0, 124, 185, 0.03);
}

.table-custom td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Badges */
.badge-paid { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-pending { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.badge-overdue { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 124, 185, 0.25);
}

.btn-primary-mayura {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary-mayura:hover {
    background-color: var(--dark-navy);
    border-color: var(--dark-navy);
    color: #ffffff;
}

/* Printable Invoice Template */
.invoice-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.invoice-header {
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.company-title {
    color: var(--dark-navy);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.company-tagline {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.invoice-badge-gst {
    background-color: var(--dark-navy);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.invoice-summary-box {
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #bce2f3;
}

.invoice-terms-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
}

/* Print Specific Rules */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .no-print, .navbar-mayura, footer, .btn, .card-header-actions {
        display: none !important;
    }
    .main-content {
        padding: 0 !important;
    }
    .invoice-wrapper {
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .table-custom thead th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .invoice-summary-box, .invoice-terms-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
