﻿
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
    /* Info color palette */
    --color-info: #0dcaf0;
    --color-info-dark: #0aa2c0;
    --color-info-light: #cff4fc;
    /* Aliases used across site */
    --primary: var(--color-info);
    --primary-dark: var(--color-info-dark);
    --primary-light: var(--color-info-light);
    --white: #ffffff;
    --bg: #f8f9fa;
    --text-dark: #212529;
    /* Semantic colors */
    --success: #198754;
    --danger: #dc3545;
}

/* ================================
   BASE / BOOTSTRAP OVERRIDES
================================ */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background: var(--bg);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo, .primary-btn, .track-form button {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-weight: 500;
}

/* ================================
   GLOBAL UL/LI RESET
================================ */
ul, li {
    list-style: none; /* remove bullets/icons */
    margin: 0;
    padding: 0;
}

/* ================================
   NAVBAR
================================ */
.navbar {
    background: linear-gradient(to bottom, #0dcaf0 0%, #0aa2c0 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    padding: 3px 10px; /* ↓ Navbar height reduced */
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: var(--white);
}

.nav-right a {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease; /* smooth hover/focus */
}

    /* ================================
   NAV LINK FOCUS/CLICK MARKING
================================ */
    .nav-right a:focus,
    .nav-right a:active,
    .nav-right a:hover {
        outline: none; /* remove default outline */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* soft shadow on click/focus */
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.15); /* soft highlight */
        transition: all 0.25s ease-in-out; /* smooth transition */
        padding:10px;
    }

/* ================================
   BUTTON FOCUS OVERRIDE
================================ */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary); /* soft outline */
    outline-offset: 2px;
    box-shadow: 0 0 0 0.1rem var(--white), 0 0 0 0.25rem var(--primary);
    transition: box-shadow 0.25s ease-in-out;
}

/* ================================
   FLOATING LABEL FIX
================================ */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ================================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================
   CONTAINER
================================ */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
}

/* ================================
   CARD
================================ */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .card h2 {
        margin-bottom: 16px;
    }

.center {
    text-align: center;
}

/* ================================
   TRACKING FORM
================================ */
.track-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .track-form select,
    .track-form input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .track-form button {
        background: var(--primary);
        color: var(--white);
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
    }

        .track-form button:hover {
            background: var(--primary-dark);
        }

/* ================================
   TEXT STYLES
================================ */
.highlight {
    color: var(--success);
    font-size: 18px;
    margin-bottom: 8px;
}

.link {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.helpline {
    font-size: 20px;
    color: var(--danger);
}

/* ================================
   BUTTONS
================================ */
.success-btn {
    background: var(--success);
    border: none;
    padding: 10px 20px;
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
}

.primary-btn {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
}

    .primary-btn:hover {
        background: var(--primary-dark);
    }

/* ================================
   HEADINGS & PARAGRAPHS
================================ */
h1 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

/* ================================
   LOGIN CARD / FORM
================================ */
.login-card {
    border-radius: 16px;
    background: #fff;
    animation: fadeIn 0.6s ease-in-out;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 10px 12px;
}

.btn-login {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px;
}

/* Dropdown container */



/* ================================
   ANIMATION
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
    .track-form {
        flex-direction: column;
    }
}
