﻿:root {
    /* Color Palette - Aero-Dash Light Theme */
    --primary: #f9572a;
    /* Aero-Dash Orange */
    --primary-hover: #ea481f;
    --secondary: #1e3a8a;
    /* Aero-Dash Deep Blue */
    --accent: #0ea5e9;
    /* Sky Blue */

    --bg-dark: #f8fafc;
    /* Slate 50 - Light Background */
    --bg-card: #ffffff;
    /* White Card */

    --text-main: #0f172a;
    /* Slate 900 - Dark Text */
    --text-muted: #64748b;
    /* Slate 500 */

    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(249, 87, 42, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    min-width: 210px;
    box-shadow: var(--glass-shadow);
    z-index: 120;
    margin-top: 2px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.35rem 0.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.nav-dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(249, 87, 42, 0.05);
    border-radius: 6px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown > .btn {
    padding: 0.6rem 1.1rem;
    border-radius: 30px;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--primary-hover);
}

.nav-auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.nav-auth-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-auth-links a:hover {
    color: var(--primary-hover);
}

.nav-auth-divider {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.nav-user {
    font-weight: 600;
    color: var(--text-main);
}

.nav-badge {
    background: rgba(249, 87, 42, 0.1);
    color: var(--primary);
    border: 1px solid rgba(249, 87, 42, 0.3);
    border-radius: 10px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    min-height: auto;
    position: relative;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(249, 87, 42, 0.3);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--secondary) !important;
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.btn-secondary:visited {
    color: var(--secondary) !important;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(30, 58, 138, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-outline-light {
    background: #ffffff;
    color: var(--secondary);
    border: 1px solid var(--glass-border);
}

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glass-shadow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 87, 42, 0.1);
    border: 1px solid rgba(249, 87, 42, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(249, 87, 42, 0.5);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
    margin-top: 1rem;
    margin-left: 60px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.25rem;
}

.card-link {
    display: block;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 7rem 1.5rem 4rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.floating-card {
    width: 170px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.9rem;
    background: #eff6ff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2), 0 8px 15px -4px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card-1 {
    transform: translate(185px, -55px);
}

.card-1 .card-icon {
    color: var(--secondary);
    font-size: 1.5rem;
}

.card-1 h4,
.card-1 p,
.card-1 .card-status {
    color: var(--secondary);
}

.card-2 {
    transform: translate(-120px, 10px);
}

.card-2 .card-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.card-2 h4,
.card-2 p,
.card-2 .card-status {
    color: var(--primary);
}

.card-status {
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

.auth-card {
    width: 100%;
    max-width: 540px;
    padding: 2rem;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
    }

    .inline-fields {
        grid-template-columns: 1fr;
    }
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-header p {
    color: var(--text-muted);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-back-link:hover {
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Currency dropdown tweaks */
.currency-input::-webkit-calendar-picker-indicator {
    display: none !important;
}

datalist#currency-options {
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    position: absolute;
    z-index: 9999;
    box-shadow: var(--glass-shadow);
}

datalist#currency-options option {
    padding: 6px 8px;
    font-size: 14px;
}

.inline-fields {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 0.75rem;
}

.inline-fields.double {
    grid-template-columns: 1fr 1fr;
}

.inline-fields.triple {
    grid-template-columns: repeat(3, 1fr);
}

.inline-field .form-label {
    margin-bottom: 0.35rem;
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 87, 42, 0.15);
}

.form-actions {
    margin-top: 1.5rem;
}

.docs-narrow {
    max-width: 60%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 87, 42, 0.15);
}

.form-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 0;
}

.form-divider span {
    background: var(--bg-dark);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #ffffff;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(249, 87, 42, 0.02);
}

.form-radio {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.radio-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.radio-label {
    font-weight: 700;
    color: var(--text-main);
}

.radio-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-radio:checked+.radio-body .radio-label {
    color: var(--primary);
}

.form-radio:checked+.radio-body .radio-help {
    color: var(--text-main);
}

.help-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.search-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.search-field label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-main);
}

.search-action button {
    margin-top: 0;
}

.typeahead-dropdown {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    top: calc(100% + 6px);
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: var(--glass-shadow);
    width: 100%;
    display: none;
    z-index: 1000;
}

.typeahead-item {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    color: var(--text-main);
}

.typeahead-item:hover {
    background: rgba(249, 87, 42, 0.05);
}

.typeahead-input {
    position: relative;
}

.typeahead-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.hidden {
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer p {
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-open {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-awarded {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-delivered {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-closed {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.status-declined {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
    width: 100%;
    flex-shrink: 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #2952b8;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    margin-top: 25px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e40af;
}
