/* Customer Portal - Global Styles */

:root {
    /* ZedDelivery Color Scheme */
    --primary: #4276A4;
    /* ZedDelivery Blue */
    --primary-dark: #2D5F8B;
    /* ZedDelivery Header Blue */
    --secondary: #3979b2;
    /* ZedDelivery Hover Blue */
    --accent: #d64635;
    /* ZedDelivery Red/Orange Accent */
    --bg-dark: #1e3a5f;
    /* Dark blue background */
    --bg-card: #2D5F8B;
    /* Card background */
    --bg-sidebar: #4276A4;
    /* Sidebar blue */
    --text-primary: #ffffff;
    --text-secondary: #C9DFF5;
    /* Light blue text */
    --text-muted: #8EB8DE;
    /* Muted blue text */
    --border-color: #4a83b6;
    /* Blue border */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #d64635;
    /* Same as accent */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    width: auto;
    max-width: 180px;
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.sidebar-header .logo-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;

    /* Cross-browser Scrollbar Support (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Custom Scrollbar for Sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: var(--bg-dark);
}

/* Page Headers */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    display: inline-block;
}

.back-link:hover {
    color: var(--primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-card.balance {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content h3 {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card.balance .stat-content h3 {
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Section */
.section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.view-all {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.view-all:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

tbody tr.clickable {
    cursor: pointer;
    transition: background 0.2s ease;
}

tbody tr.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.amount {
    font-weight: 600;
    color: #ffffff;
}

.debit {
    color: #ff6b6b;
    font-weight: 600;
}

.credit {
    color: #51e898;
    font-weight: 600;
}

.positive {
    color: #51e898;
    font-weight: 600;
}

.negative {
    color: #ff6b6b;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-badge.confirmed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.status-badge.in-progress {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.status-badge.delivered {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Quick Actions */
.quick-actions {
    margin-top: 32px;
}

.quick-actions h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.action-btn .icon {
    font-size: 1.25rem;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination button {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.balance-card.total {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.balance-card.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.balance-card h4 {
    margin: 0 0 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.balance-card.total h4 {
    color: rgba(255, 255, 255, 0.8);
}

.balance-card .value {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Profile */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.profile-card,
.info-card,
.edit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-name h2 {
    margin: 0 0 4px;
}

.customer-code {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.info-card h3,
.edit-card h3 {
    margin: 0 0 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    gap: 12px;
}

.info-row .label {
    min-width: 140px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-row .value {
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.success-message {
    padding: 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #34d399;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.error-message {
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

/* Loading & Empty States */
.loading-state,
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* Order Detail */
.order-summary {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.summary-card,
.totals-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.summary-card h3 {
    margin: 0 0 20px;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.info-item span {
    font-size: 0.875rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.total-row.net {
    border-bottom: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.order-items {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.order-items h3 {
    margin: 0 0 20px;
    font-size: 1rem;
}

/* Orders & Ledger Tables */
.orders-table,
.ledger-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Mobile Header (hidden by default, shown on mobile) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}

.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.mobile-user-menu {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mobile-user-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-user-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    padding: 4px;
    z-index: 1001;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
}

.dropdown-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}



/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: #0f3460;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 8px 0;
    box-sizing: border-box;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.mobile-nav-item .nav-icon {
    font-size: 1.4rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #667eea;
}

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }

    .sidebar .logo-text,
    .sidebar .nav-text {
        display: none;
    }

    .sidebar-header {
        justify-content: center;
        padding: 16px;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .logout-btn {
        justify-content: center;
    }

    .logout-btn .nav-text {
        display: none;
    }

    .main-content {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-summary {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Breakpoint (max 768px) */
@media (max-width: 768px) {

    /* Hide sidebar, show mobile nav */
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .mobile-nav {
        display: flex !important;
    }

    /* Adjust main content for mobile header and bottom nav */
    .main-content {
        padding: 80px 16px 90px 16px;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Stats Grid - single row on mobile */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .stat-icon {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    /* Charts - Full width stacked */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .chart-container {
        padding: 16px;
    }

    /* Tables - Horizontal scroll */
    .orders-table,
    .ledger-table {
        padding: 16px;
        border-radius: 12px;
    }

    table {
        min-width: 600px;
    }

    thead th,
    tbody td {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    /* Section styling */
    .section {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    /* Filters - Stack vertically */
    .filters-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        overflow: hidden;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group input,
    .filter-group select {
        flex: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Balance Cards */
    .balance-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .balance-card {
        padding: 16px;
    }

    /* Profile Grid */
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pagination button {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* Order Summary */
    .order-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-card,
    .totals-card {
        padding: 16px;
    }

    /* Action buttons wrap */
    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* Forms */
    .form-control {
        padding: 14px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Buttons */
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 70px 12px 80px 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .stat-card {
        flex-direction: column;
        align-items: center;
        padding: 8px 4px;
    }

    .stat-value {
        font-size: 0.75rem;
    }

    .stat-content h3 {
        font-size: 0.65rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .mobile-nav-item {
        padding: 8px 10px;
        font-size: 0.65rem;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .info-row .label {
        min-width: auto;
    }
}

/* Landscape orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav {
        height: 56px;
    }

    .main-content {
        padding-bottom: 70px;
    }
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    text-align: center;
    padding: 2px 0;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    background: #0f3460;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    line-height: 16px;
}

@media (max-width: 768px) {
    .mobile-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        height: 20px;
    }

    .mobile-nav {
        bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        padding-bottom: 95px;
        /* 70px nav + 20px footer + spacing */
    }
}

/* Contact FAB */
.contact-fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-fab-main-btn:hover {
    transform: scale(1.1);
}

.contact-fab-main-btn.open {
    transform: rotate(180deg);
    background-color: #0056b3;
}

.contact-fab-main-btn.open:hover {
    transform: rotate(180deg) scale(1.1);
}

.contact-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .contact-fab-container {
        bottom: 120px;
        /* 70px nav + 20px footer + 30px gap */
        right: 20px;
    }
}