@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Refined Color Palette - Red & White Premium Theme */
    --primary-color: #E11D48; /* Vibrant Rose-Red */
    --primary-hover: #BE123C;
    --primary-light: #FFF1F2; /* Warm red-wash white */
    --primary-glow: rgba(225, 29, 72, 0.12);
    
    --secondary-color: #FFFFFF;
    
    --dark-neutral: #0F172A; /* Deep slate */
    --text-color: #475569; /* Slate 600 */
    --text-muted: #94A3B8; /* Slate 400 */
    --bg-main: #FFFBFB; /* Extremely soft warm red background tint */
    --bg-card: #FFFFFF;
    --border-color: #F1F5F9; /* Very soft light grey */
    --border-warm: #FFE4E6; /* Light pinkish-red border */
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --header-height: 80px;
    
    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(225, 29, 72, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 12px 40px -10px rgba(225, 29, 72, 0.15);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-neutral);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Base Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Responsive Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #991B1B 0%, #BE123C 60%, #E11D48 100%);
    color: var(--secondary-color);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 30px rgba(153, 27, 27, 0.08);
    z-index: 1000;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: var(--transition);
    overflow: hidden; /* Restrict entire sidebar from scrolling */
}

/* Custom Scrollbar for Sidebar Menu */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 20px;
    flex-shrink: 0;
}

.sidebar-brand i {
    font-size: 28px;
    color: var(--secondary-color);
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
}

.sidebar-brand span span {
    color: #FFE4E6; /* Light pink highlight */
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    flex-shrink: 1; /* Allow it to shrink to fit the layout height */
    min-height: 0; /* Enable flexbox child overflow computation */
    overflow-y: auto; /* Enable scrolling on the menu list itself */
    padding-right: 6px; /* Polish padding so scrollbar doesn't overlap item hover states */
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.sidebar-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-item a:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-item.active a {
    background-color: var(--secondary-color);
    color: var(--primary-hover);
    font-weight: 700;
    box-shadow: 0 10px 20px -5px rgba(153, 27, 27, 0.2);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/* Main Content Area */
.main-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
    min-width: 0;
    overflow-x: hidden;
}

.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark-neutral);
}

/* Sidebar Toggle Button for Mobile Navigation */
.sidebar-toggle {
    display: none;
    background: var(--primary-light);
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.user-info {
    font-size: 14px;
}

.user-name {
    font-weight: 700;
    color: var(--dark-neutral);
}

.user-role {
    font-size: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Content Container */
.content-body {
    padding: 40px;
    flex-grow: 1;
    min-width: 0;
}

/* Grid Dashboard Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-warm);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-neutral);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.card-icon {
    position: absolute;
    right: 28px;
    bottom: 28px;
    font-size: 36px;
    color: var(--border-warm);
    opacity: 0.6;
    transition: var(--transition);
}

.card:hover .card-icon {
    color: var(--primary-color);
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
}

/* Flex layouts for Charts & Tables */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.panel-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-neutral);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: var(--primary-color);
}

/* Premium Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.25);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--border-warm);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Forms & Inputs styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-neutral);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--secondary-color);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Custom Select Dropdowns */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e11d48' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 42px;
}

/* Beautiful Tables styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: var(--secondary-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 700;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-warm);
    font-family: var(--font-heading);
}

.table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: rgba(225, 29, 72, 0.02);
}

/* Custom Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #D97706;
}

.badge-success, .badge-delivered, .badge-completed, .badge-received {
    background-color: #D1FAE5;
    color: #059669;
}

.badge-failed, .badge-rejected {
    background-color: #FEE2E2;
    color: #EF4444;
}

/* Alert Notification Banners */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Modal Popup Window styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(153, 27, 27, 0.15);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Login/Registration Auth Pages styling */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.08), transparent 45%),
                radial-gradient(circle at bottom right, rgba(225, 29, 72, 0.04), transparent 45%),
                var(--bg-main);
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-box {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-logo span {
    color: var(--dark-neutral);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 36px;
}

.auth-footer-link {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Premium Split-Screen Auth Page Styles */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

.auth-sidebar-banner {
    flex: 1.2;
    background: linear-gradient(135deg, #7F1D1D 0%, #BE123C 60%, #E11D48 100%);
    color: var(--secondary-color);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-sidebar-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.auth-sidebar-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-sidebar-logo i {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.auth-sidebar-content h2 {
    font-size: 44px;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.auth-sidebar-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 480px;
}

.auth-sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.auth-sidebar-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-sidebar-feature-item i {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-card);
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-neutral);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .auth-sidebar-banner {
        display: none;
    }
    
    .auth-form-container {
        padding: 24px;
        background-color: var(--bg-main);
    }
    
    .auth-form-box {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 36px 24px;
        box-shadow: var(--shadow-md);
    }
}

/* Tab Bar System used in Public storefront */
.tab-container {
    display: flex;
    background-color: var(--primary-light);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-warm);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Public Store Link Layout (Elegant Red & White theme styling) */
.store-wrapper {
    min-height: 100vh;
    background-color: var(--bg-main);
}

.store-header {
    background: linear-gradient(135deg, #7F1D1D 0%, #BE123C 60%, #E11D48 100%);
    color: var(--secondary-color);
    padding: 70px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 30px rgba(153, 27, 27, 0.15);
}

.store-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.store-logo i {
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.25));
}

.store-bio {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    max-width: 600px;
    margin: 8px auto 0;
    font-weight: 500;
}

.store-body {
    max-width: 840px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.store-card {
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    padding: 44px;
    border: 1px solid var(--border-warm);
}

/* Store Package Selector Cards grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.package-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background-color: var(--bg-card);
}

.package-item:hover {
    border-color: var(--border-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.package-item.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    box-shadow: 0 8px 20px -6px rgba(225, 29, 72, 0.15);
}

.package-item.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary-color);
    font-size: 18px;
}

.package-network {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.package-item.selected .package-network {
    color: var(--primary-color);
}

.package-volume {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--dark-neutral);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.package-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

/* =========================================================================
   Responsive Media Queries & Sidebar Animation
   ========================================================================= */

@media (max-width: 1024px) {
    /* Responsive Sidebar Drawer at 1024px (Tablets & Mobile) */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: inline-flex;
    }
    
    .sidebar-close {
        display: inline-flex !important;
    }
    
    .sidebar-close:hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .header {
        padding: 0 24px;
        height: 70px;
    }
    
    .content-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .header-user .user-info {
        display: none; /* Hide textual username on small phones to save header space */
    }
    
    .content-body {
        padding: 20px 16px;
    }
    
    .stats-grid {
        gap: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .store-card {
        padding: 24px 16px;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px 6px;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Landing Page / Welcome Page Styles
   ========================================================================= */

.landing-wrapper {
    min-height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.landing-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-logo span {
    color: var(--dark-neutral);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.landing-nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.landing-nav-link:hover {
    color: var(--primary-color);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hero Section */
.landing-hero {
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.08), transparent 45%),
                radial-gradient(circle at bottom right, rgba(225, 29, 72, 0.04), transparent 45%),
                linear-gradient(135deg, #FFFBFB 0%, #FFFFFF 100%);
    padding: 100px 40px 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.landing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid var(--border-warm);
}

.landing-hero-title {
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--dark-neutral);
    margin-bottom: 20px;
}

.landing-hero-title span {
    background: linear-gradient(135deg, #BE123C 0%, #E11D48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
    font-size: 18px;
    color: var(--text-color);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.landing-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}



/* Feature Grid Section */
.features-section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    letter-spacing: -0.5px;
    color: var(--dark-neutral);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-warm);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-warm);
}

.feature-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-neutral);
    margin-bottom: 12px;
}

.feature-card-text {
    font-size: 14px;
    color: var(--text-color);
}

/* Steps Section */
.steps-section {
    background-color: #FFF5F5;
    border-top: 1px solid var(--border-warm);
    border-bottom: 1px solid var(--border-warm);
    padding: 80px 40px;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.step-card {
    position: relative;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}

.step-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-neutral);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-color);
}

/* Call to Action Banner */
.cta-section {
    padding: 80px 40px;
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, #7F1D1D 0%, #BE123C 60%, #E11D48 100%);
    color: var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(153, 27, 27, 0.15);
}

.cta-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer */
.landing-footer {
    background-color: var(--dark-neutral);
    color: var(--secondary-color);
    padding: 40px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-footer p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .landing-header {
        padding: 16px 20px;
    }
    
    .landing-nav-links {
        display: none;
    }
    
    .landing-hero {
        padding: 60px 20px 60px;
    }
    
    .landing-hero-title {
        font-size: 34px;
        letter-spacing: -0.5px;
    }
    
    .landing-hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .landing-hero-actions .btn {
        width: 100%;
    }
    

    
    .features-section {
        padding: 40px 20px;
    }
    
    .steps-section {
        padding: 50px 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-card {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 26px;
    }
}

/* Sidebar Collapsible Submenu Settings */
.sidebar-item-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    transition: var(--transition);
}
.sidebar-item-summary::-webkit-details-marker {
    display: none;
}
.sidebar-item-summary:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar-item-details[open] .toggle-icon {
    transform: rotate(180deg);
}
.sidebar-submenu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}
.sidebar-submenu-item a:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.08);
}
.sidebar-submenu-item.active a {
    background-color: var(--secondary-color) !important;
    color: var(--primary-hover) !important;
    font-weight: 600;
}

/* Quick Actions Grid Dashboard */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-warm);
    background: var(--primary-light);
}
.quick-action-card .icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}
.quick-action-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.quick-action-card .title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-neutral);
}
.quick-action-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Pagination Styling */
nav[role="navigation"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
nav[role="navigation"] .small.text-muted {
    font-size: 13.5px;
    color: var(--text-muted);
}
nav[role="navigation"] .small.text-muted .fw-semibold {
    font-weight: 600;
    color: var(--dark-neutral);
}
.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.page-item {
    display: inline-block;
}
.page-item .page-link,
.page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.page-item .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}
.page-item.active .page-link,
.page-item.active span {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    font-weight: 600;
}
.page-item.disabled .page-link,
.page-item.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-body);
    color: var(--text-muted);
    border-color: var(--border-color);
}



