/* WaaS Self-Service Portal - Custom Styles */

/* Root variables */
:root {
    --waas-primary: #0d6efd;
    --waas-sidebar-bg: #212529;
    --waas-sidebar-width: 260px;
}

/* Body */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Dashboard stat cards */
.card .display-4 {
    font-size: 2.5rem;
}

/* Login page */
.login-container {
    max-width: 420px;
    margin: 0 auto;
}

/* Flash messages */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Code blocks in tables */
td code, th code {
    background-color: #f1f3f5;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
}

/* Badge adjustments */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Collapsible raw data sections */
pre code {
    font-size: 0.8rem;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card .display-4 {
        font-size: 2rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Footer spacing */
body > .container {
    padding-bottom: 2rem;
}

/* Smooth transitions */
a, .btn {
    transition: all 0.15s ease-in-out;
}

/* Text truncation utility */
.text-truncate-custom {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}