/* --- AAYOJAN REGISTRY PREMIUM STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.registry-page {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
}

/* Typography */
.registry-page .text-gold { color: #fbb03b !important; }
.registry-page .page-header h1 { font-weight: 800; font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 5px; color: #0f172a; }
.registry-page .page-header p { font-weight: 500; color: #64748b; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; }

/* Buttons */
.registry-page .btn-premium-add {
    background: #0f172a;
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 15px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.registry-page .btn-premium-add:hover {
    background: #fbb03b;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(251, 176, 59, 0.3);
}

/* Stats */
.registry-page .stat-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    height: 100%;
}
.registry-page .stat-card:hover { border-color: #fbb03b; transform: translateY(-5px); }
.registry-page .stat-label { font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; }
.registry-page .stat-value { font-size: 2.2rem; font-weight: 800; color: #0f172a; display: block; margin-top: 5px; }

/* Search & Filters */
.registry-page .search-container {
    background: #fff;
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}
.registry-page .search-input {
    border: none;
    outline: none;
    padding: 10px;
    width: 100%;
    font-size: 0.95rem;
    background: transparent;
}

/* Table */
.registry-page .registry-card {
    background: #fff;
    border-radius: 30px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.registry-page .table-premium thead th {
    border: none;
    background: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 20px;
}
.registry-page .table-premium tbody td {
    padding: 25px 20px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}
.registry-page .table-premium tbody tr:hover { background-color: #fffcf5; }

/* Status & Actions */
.registry-page .status-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.registry-page .status-active { background: #dcfce7; color: #15803d; }
.registry-page .status-inactive { background: #fee2e2; color: #991b1b; }

.registry-page .action-icon-btn {
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.registry-page .action-icon-btn:hover { background: #fbb03b; color: #000; border-color: #fbb03b; }
:root {
    --gold: #FACC15;
    --gold-hover: #EAB308;
    --charcoal: #0F172A;
    --sidebar-bg: #FEF9C3;
    --sidebar-accent: #FACC15;
    --sidebar-text: #713F12;
    --bg-canvas: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}

/* --- Global Resets --- */
body {
    background-color: var(--bg-canvas);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    margin: 0;
}

/* --- App Top Navbar --- */
.app-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.app-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sidebar-text);
}

.auth-link {
    position: relative;
    color: var(--text-muted) !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-hover));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease-out;
}

.auth-link:hover {
    color: var(--gold) !important;
    transform: translateY(-1px);
}

.auth-link:hover::after {
    transform: scaleX(1);
}

.auth-link-register::after {
    bottom: 0.15rem;
}

/* --- Login Page (Overlay Style) --- */
.login-overlay-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-canvas);
    background-image: radial-gradient(circle at 10% 10%, rgba(250, 204, 21, 0.1), transparent);
}

.login-premium-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 3.5rem 2.5rem;
    position: relative;
    border-radius: 12px; /* Changed from 50% to modern rounded square */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--gold);
    transition: all 0.3s ease;
}

/* --- Sidebar (Premium Tech Look) --- */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background: #FFF9C4; /* Light Yellow/Cream */
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
}

.sidebar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: #4A2C05; /* Dark Brown */
    text-decoration: none !important;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
}

.sidebar-brand span {
    color: #F59E0B; /* Gold */
}

.nav-item-custom {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Reduced padding */
    margin-bottom: 5px; /* Reduced margin */
    border-radius: 12px;
    color: #4A2C05; /* Dark Brown Text */
    font-weight: 700; /* Bolder text */
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.95rem; /* Slightly smaller font for better fit */
}

.nav-item-custom i {
    width: 24px;
    font-size: 1.2rem;
    margin-right: 12px;
}

.nav-item-custom:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #4A2C05;
    transform: translateX(3px);
}

.nav-item-custom.active {
    background: #FFD700; /* Bright Yellow/Gold Button */
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- Main Content Area --- */
.main-wrapper {
    margin-left: 280px; /* Must match sidebar width */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4A2C05; /* Dark Brown */
    padding: 1rem 2rem !important;
}

.content-area {
    padding: 3rem;
}

/* --- Table & Card Styles --- */
.registry-container {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.btn-gold {
    background-color: var(--gold);
    border: none;
    color: var(--charcoal);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-1px);
}


/* --- Professional Quotation Design --- */
.quotation-card {
    background: #fff;
    padding: 40px;
    color: #000;
    font-family: 'Times New Roman', Times, serif; /* Professional look */
}

.header-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.section-title {
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    width: 100%;
    margin-bottom: 10px;
}

.signature-line {
    border-top: 1px solid #000;
    width: 200px;
    margin-top: 50px;
    display: inline-block;
}

/* --- THE ULTIMATE PRINT FIX --- */
@media print {
    /* 1. Hide the entire application UI */
    body * {
        visibility: hidden !important;
    }

    /* 2. Target only the quotation card and its children */
    #print-area, #print-area * {
        visibility: visible !important;
    }

    /* 3. Force the quotation to the top-left corner and remove dashboard constraints */
    #print-area {
        visibility: visible !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: white !important;
    }

    /* 4. Hide common admin template elements specifically */
    .main-sidebar, .main-header, .navbar, .sidebar, .footer, .btn, .no-print, aside, nav {
        display: none !important;
    }

    /* 5. Remove any shadows or borders that look "web-like" */
    .quotation-card {
        box-shadow: none !important;
        border: none !important;
    }

    /* 6. Ensure colors and table backgrounds print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* --- Professional Receipt Styling --- */
.receipt-wrapper {
    background: #fff;
    padding: 60px;
    color: #2c3e50;
    font-family: 'Inter', -apple-system, sans-serif;
    border: 1px solid #e1e8ed;
}

.receipt-header {
    text-align: center;
    border-bottom: 3px solid #f8f9fa;
    padding-bottom: 30px;
    margin-bottom: 40px;
}
.receipt-logo {
    max-height: 50px; /* Reduced from 70px */
    width: auto;      /* Keeps aspect ratio */
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.receipt-header h2 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 5px;
    color: #1a202c;
}

.receipt-header p {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0;
}

/* Amount Badge - The focal point of the bill */
.amount-badge {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px 0;
}

.amount-badge .label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 1px;
}

.amount-badge .value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2d3748;
}

/* Content Layout */
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}

.receipt-row .field-label {
    font-weight: 600;
    color: #718096;
}

.receipt-row .field-value {
    font-weight: 700;
    color: #1a202c;
    text-align: right;
}

.signature-footer {
    margin-top: 80px;
}

.signature-footer .line {
    border-top: 2px solid #2d3748;
    width: 200px;
    margin-top: 60px;
}