/* Global */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
}
  
/* NAVBAR (Base) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #000, #1a1a1a, #000);
    color: #e0b400;


    box-shadow: 
        0 2px 12px rgba(224, 180, 0, 0.35),
        0 6px 24px rgba(224, 180, 0, 0.15);
}



.enhanced-navbar {
    padding: 1rem 2rem;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 180, 0, 0.3);
    box-shadow: 0 2px 20px rgba(224, 180, 0, 0.15);
    border-radius: 0 0 0.75rem 0.75rem;
}

.enhanced-navbar .brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0b400;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(224, 180, 0, 0.4);
}

/* Link container */
.nav-right a {
    position: relative;
    margin-left: 1.5rem;
    padding: 0.25rem 0;
    color: #e0b400;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

/* Animated underline */
.nav-right a::after {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: -3px;
    background: #e0b400;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.25s ease;
    border-radius: 2px;
}

.nav-right a:hover::after {
    transform: scaleX(1);
}

/* Glow on hover */
.nav-right a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(224, 180, 0, 0.6);
}



  
/* Container */
.container {
    padding: 1.5rem;
}
  
/* Headings */
h1, h2 {
    margin-top: 0;
    color: #e0b400;
    text-shadow: 0 0 8px rgba(224, 180, 0, 0.3);
}
  
/* Cards */
.card {
    background: #111;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(224, 180, 0, 0.05);
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
}
  
.card:hover {
    border-color: #e0b400;
    box-shadow: 0 0 22px rgba(224, 180, 0, 0.15);
}
  
/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
  
.stat-card {
    background: #141414;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #333;
    transition: 0.25s ease;
}
  
.stat-card:hover {
    border-color: #e0b400;
    box-shadow: 0 0 18px rgba(224, 180, 0, 0.2);
}
  
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e0b400;
}
  
/* Detail grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
  
/* Tables (Default) */
table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(224, 180, 0, 0.12);
}
  
th {
    background: #e0b400;
    color: black;
    font-weight: 700;
}
  
th, td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #222;
}
  
tr:nth-child(even) {
    background: #1b1b1b;
}
  
/* Error text */
.error {
    color: #ff4d4d;
    margin-bottom: 1rem;
    font-weight: bold;
}
  
/* Forms inside cards */
form.card label {
    display: block;
    margin-bottom: 0.75rem;
    color: #e0b400;
}
  
input, select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    transition: 0.2s;
}
  
input:focus, select:focus {
    outline: none;
    border-color: #e0b400;
    box-shadow: 0 0 8px rgba(224, 180, 0, 0.35);
}
  
/* Buttons */
button {
    padding: 0.6rem 1rem;
    border: none;
    background: #e0b400;
    color: black;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.25s ease;
}
  
button:hover {
    background: #f0c83a;
    box-shadow: 0 0 12px rgba(224, 180, 0, 0.45);
}
  
/* Filters */
.filters {
    margin-bottom: 1rem;
}
  
.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.login-card {
    width: 350px;
    background: #111;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    box-shadow: 0 0 25px rgba(224, 180, 0, 0.20);
    text-align: center;
}
  
.login-card h2 {
    color: #e0b400;
    margin-bottom: 1.5rem;
}
  
.login-card input {
    width: 100%;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border-radius: 0.4rem;
    background: #1b1b1b;
    border: 1px solid #333;
    color: white;
}
  
.login-card input:focus {
    outline: none;
    border-color: #e0b400;
    box-shadow: 0 0 10px rgba(224, 180, 0, 0.4);
}
  
.login-card button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: #e0b400;
    color: black;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}
  
.login-card button:hover {
    background: #f0c83a;
    box-shadow: 0 0 20px rgba(224, 180, 0, 0.4);
}
  

body:has(.login-wrapper) .navbar {
    display: none !important;
}


.page-title {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #e0b400;
    text-shadow: 0 0 12px rgba(224, 180, 0, 0.35);
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.search-input {
    padding: 0.6rem 1rem;
    width: 240px;
    background: #111;
    border: 1px solid #333;
    border-radius: 0.5rem;
    color: #e0b400;
    transition: 0.25s ease;
}

.search-input:focus {
    outline: none;
    border-color: #e0b400;
    box-shadow: 0 0 12px rgba(224, 180, 0, 0.4);
}

.table-wrapper {
    background: #111;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(224, 180, 0, 0.15);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.5rem;
}

.styled-table th {
    background: #e0b400;
    color: #000;
    text-align: left;
    padding: 0.8rem;
    font-weight: 700;
}

.styled-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #222;
}

.styled-table tr:nth-child(even) {
    background: #1a1a1a;
}

.styled-table tr:hover {
    background: rgba(224, 180, 0, 0.1);
    transition: 0.2s;
}

/* View button */
.view-btn {
    padding: 0.4rem 0.75rem;
    background: #e0b400;
    color: black !important;
    border-radius: 0.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.view-btn:hover {
    background: #f0c83a;
    box-shadow: 0 0 10px rgba(224, 180, 0, 0.5);
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #e0b400;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.25s ease;
    text-shadow: 0 0 12px rgba(224, 180, 0, 0.4);
}

.brand:hover {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(224, 180, 0, 0.7);
}

h1, h2, h3, h4, h5, h6 
.brand{
    user-select: none;
    cursor: default;
}
.nav-right a.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(224, 180, 0, 0.8);
}

.nav-right a.active::after {
    transform: scaleX(1);
}

.form-actions {
    margin-top: 20px;
}
.status-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.flights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}


.btn-add {
    padding: 8px 14px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-top: -4px;
}

.btn-add:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.delete-btn {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    font-weight: 600;
    margin-left: 8px;
}

.delete-btn:hover {
    text-decoration: underline;
}


.dark-theme {
    max-width: 650px;
    margin: 0 auto;
}

.yellow-text {
    color: #f5c400;
}

/* Card */
.dark-card {
    background: #0f0f0f;
    border: 1px solid #222;
    padding: 24px;
    border-radius: 10px;
}

/* Labels & inputs */
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-row label {
    color: #f5c400;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input,
.form-row select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #f5c400;
}

/* Error */
.error-box {
    background: rgba(245, 196, 0, 0.15);
    color: #f5c400;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Actions */
.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

/* Yellow primary button */
.btn-yellow {
    background: linear-gradient(135deg, #f5c400, #ffda44);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.btn-yellow:hover {
    opacity: 0.9;
}

/* Cancel */
.cancel-link {
    color: #aaa;
    text-decoration: none;
    align-self: center;
}

.cancel-link:hover {
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap; 
}


@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons form {
        width: 100%;
    }
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        display: none; 
        flex-direction: column;
        width: 100%;
    }

    .nav-right.open {
        display: flex;
    }
}

