/* =========================================================
   A to Z Rahamania Enterprises - Professional Custom Stylesheet
   ========================================================= */

:root {
    --primary-color: #1e3a8a;
    --primary-accent: #2563eb;
    --secondary-color: #64748b;
    --bg-light: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Brand Navbar & Header */
.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.brand-badge {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
}

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Login Card Styling */
.login-container {
    max-width: 420px;
    width: 100%;
    margin: 40px auto;
}

.login-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Dashboard Summary Stat Cards */
.stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    transition: all 0.25s ease-in-out;
    box-shadow: var(--card-shadow);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Specific Stat Card Colors */
.stat-icon-blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon-green { background: #dcfce7; color: #15803d; }
.stat-icon-red { background: #fee2e2; color: #b91c1c; }
.stat-icon-orange { background: #ffedd5; color: #c2410c; }
.stat-icon-purple { background: #f3e8ff; color: #6b21a8; }
.stat-icon-teal { background: #ccfbf1; color: #0f766e; }
.stat-icon-indigo { background: #e0e7ff; color: #4338ca; }

/* Filter Bar & Controls */
.filter-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

/* Custom Badges for Payment & Category */
.badge-paid {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-pending {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-partial {
    background-color: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.badge-cat-a {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-cat-b {
    background-color: #e0f2fe;
    color: #075985;
}

.badge-cat-c {
    background-color: #f1f5f9;
    color: #334155;
}

/* Serial Number Pill */
.serial-badge {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

/* Custom Table Styling */
.custom-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.custom-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.85rem 0.75rem;
}

.custom-table td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Toast Container */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
}

/* Action Buttons */
.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

/* Empty State Styling */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Payment Progress Bar */
.progress-thin {
    height: 6px;
    border-radius: 3px;
    background-color: #e2e8f0;
}

/* Timeline Components */
.timeline-container {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.05rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #3b82f6;
}
