/* ===== Base Layout ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e4e4e4;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Container Spacing ===== */
.container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

a {
    color: #258cfb;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #62a8ff;
        text-decoration: underline;
    }

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #258cfb;
    border: none;
}

    .btn-primary:hover {
        background-color: #1c6fd4;
        transform: translateY(-1px);
    }

/* ===== Forms ===== */
.form-control,
.form-select {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 12px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #258cfb;
        box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.3);
    }

/* ===== Tables ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
}

    .table th, .table td {
        vertical-align: top;
        text-align: center;
    }

.table-dark {
    background-color: #1b1b1b;
    color: #e4e4e4;
}

.table-bordered {
    border-color: #333;
}

/* ===== Navbar (Slim Version) ===== */
.navbar {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    padding: 0.35rem 1rem; /* smaller height */
    height: 55px; /* keeps consistent slim size */
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    color: #258cfb !important;
    letter-spacing: 0.4px;
}

    .navbar-brand:hover {
        color: #62a8ff !important;
    }

.nav-link {
    color: #e4e4e4 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    transition: color 0.2s ease, transform 0.15s ease;
}

    .nav-link:hover {
        color: #62a8ff !important;
        transform: translateY(-1px);
    }

.navbar-nav {
    gap: 0.5rem;
}


/* ===== Footer ===== */
footer {
    background-color: #1a1a1a;
    color: #bbb;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

    footer span {
        color: #258cfb;
        font-weight: 600;
    }

/* ===== Misc Utility ===== */
.text-white {
    color: #ffffff !important;
}

.card {
    background-color: #1e1e1e;
    color: #e4e4e4;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

    .card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,0.5);
        transform: translateY(-1px);
        transition: all 0.2s ease-in-out;
    }

/* ===== Dashboard Page Adjustments ===== */
.dashboard-header {
    margin-top: -0.99rem; /* less space below navbar */
    margin-bottom: 1rem; /* space between title and content */
}

    .dashboard-header h1,
    .dashboard-header h1.display-6 {
        font-size: 3rem; /* slightly smaller for compact layout */
        font-weight: 700;
        background: linear-gradient(90deg, #6a11cb, #2575fc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .dashboard-header p.lead {
        margin-top: 0.25rem; /* less space above the quote */
        margin-bottom: 0; /* reduces gap under quote */
        font-size: 1.2rem;
        color: #e0e0e0;
        font-style: italic;
    }

main {
    padding-top: 1rem !important; /* slightly smaller top padding for main content */
}