/* Goyal Photo State - Custom CSS */

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-hover: #172554;
    --secondary: #0f766e;
    --secondary-light: #14b8a6;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    /* State colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Layout heights & widths */
    --sidebar-width: 260px;
    --header-height: 70px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary-soft { background-color: rgba(30, 58, 138, 0.08); }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }

/* Buttons & Elements */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.btn-teal {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}
.btn-teal:hover {
    background-color: #0d5e58;
    border-color: #0d5e58;
    color: white;
}

/* Custom Alert Badges */
.badge-active { background-color: var(--success); color: white; }
.badge-warning-soon { background-color: var(--warning); color: #000; }
.badge-expired { background-color: var(--danger); color: white; }

/* Main Portal Wrapper */
.portal-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: #0f172a;
    color: #f1f5f9;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.sidebar .logo-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #1e293b;
}
.sidebar .logo-area h5 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}
.sidebar .sidebar-menu {
    padding: 1.5rem 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.sidebar .menu-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    font-weight: 700;
}
.sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.sidebar .menu-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}
.sidebar .menu-item:hover, .sidebar .menu-item.active {
    color: #ffffff;
    background-color: #1e293b;
    border-left-color: var(--primary-light);
}

/* Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.content-body {
    padding: 2rem;
    overflow-y: auto;
}

/* Cards Design */
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Table Design */
.custom-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.custom-table {
    margin-bottom: 0;
}
.custom-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}
.custom-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Public Homepage Styling */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: #ffffff;
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.home-service-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}
.home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.home-service-card .icon-area {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}
.form-label {
    font-weight: 550;
    font-size: 0.9rem;
    color: #334155;
}

/* Responsive elements */
@media(max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }
    .sidebar.show {
        left: 0;
    }
    .topbar .sidebar-toggle {
        display: block !important;
    }
}
@media(min-width: 992px) {
    .topbar .sidebar-toggle {
        display: none !important;
    }
}

/* Print CSS Stylesheet */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
        font-size: 12pt;
    }
    .sidebar, .topbar, .btn, .no-print, .modal-footer, header, footer {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .content-body {
        padding: 0 !important;
    }
    .print-receipt-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        padding: 20px !important;
        border-radius: 0 !important;
    }
    .print-receipt-header {
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    table th, table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
    }
}
