/*
 * Customer Portal — portal.css
 * egateNETWORKS Customer Portal Styles
 * Bootstrap 5.3.0 overrides + custom components
 */

/* ---- Root variables ---- */
:root {
    --egate-dark: #1a1a2e;
    --egate-primary: #0d6efd;
    --egate-nav-bg: #1a1a2e;
}

/* ---- Global ---- */
body {
    background-color: #f5f6fa;
    font-size: 0.9rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

/* ---- Login page ---- */
.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.login-page .card {
    border-radius: 12px;
}

/* ---- Navbar ---- */
.navbar {
    background-color: var(--egate-nav-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.navbar .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}
.navbar .nav-link.active {
    font-weight: 600;
}
.navbar .badge {
    font-size: 0.65rem;
    vertical-align: middle;
}

/* ---- Cards ---- */
.card {
    border-radius: 8px;
    transition: box-shadow 0.15s ease;
}
.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.card-footer {
    font-size: 0.82rem;
    color: var(--egate-primary);
}
.card-footer:hover {
    background-color: #f8f9fa !important;
}

/* ---- Tables ---- */
.table { font-size: 0.85rem; }
.table th { font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; color: #6c757d; }
.table-hover tbody tr:hover { cursor: pointer; }
.cursor-pointer { cursor: pointer; }

/* ---- Badges ---- */
.badge { font-weight: 500; }

/* ---- Forms ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--egate-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ---- Summary cards ---- */
.bg-opacity-10 {
    line-height: 1;
}

/* ---- Footer ---- */
.footer {
    font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 0.95rem;
    }
    .display-6 {
        font-size: 1.5rem;
    }
}

/* ---- Alert dismiss animation ---- */
.alert {
    border-radius: 6px;
}

/* ---- Code styling ---- */
code {
    font-size: 0.82rem;
    color: #1a1a2e;
    background: rgba(0,0,0,0.04);
    padding: 1px 4px;
    border-radius: 3px;
}

/* ---- Comment thread ---- */
.comment-bubble {
    border-radius: 12px;
}

/* ---- Status colors ---- */
.status-submitted { color: #856404; }
.status-in-review { color: #0c5460; }
.status-in-progress { color: #004085; }
.status-completed { color: #155724; }
.status-cancelled { color: #721c24; }
