/* FlightCounter CSS - Main Stylesheet */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f7fa;
    color: #1a202c;
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* ============================================
   AUTH PAGES LAYOUT (Login, Signup, Reset)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f4f8 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

/* .auth-logo img {
    width: 300px !important;
    height: 48px;
    margin-bottom: 0px !important;
} */

.auth-logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #718096;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-wrapper label {
    font-size: 13px;
    color: #4a5568;
    margin: 0;
}

.checkbox-wrapper a {
    color: #2563eb;
    font-weight: 500;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background-color: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background-color: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    font-size: 13px;
    color: #a0aec0;
    background-color: white;
    padding: 0 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #4a5568;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
}

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

.auth-footer-small {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #718096;
}

.auth-footer-small a {
    color: #2563eb;
}

/* Forgot Password Link */
.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 13px;
    color: #718096;
}

.forgot-password a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 24px;
}

.back-to-login a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.back-to-login a:hover {
    color: #2563eb;
}

/* Security Notice */
.security-notice {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.security-notice-icon {
    color: #2563eb;
    font-size: 18px;
    flex-shrink: 0;
}

.security-notice-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 4px;
}

.security-notice-content p {
    font-size: 12px;
    color: #1e40af;
    line-height: 1.5;
}

/* ============================================
   DASHBOARD LAYOUT (Sidebar + Main Content)
   ============================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: white;
    border-right: 1px solid #e2e8f0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 0 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
}

.sidebar-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 8px;
    border-radius: 8px;
}

.sidebar-nav-item:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.sidebar-nav-item.active {
    background-color: #2563eb;
    color: white;
}

.sidebar-nav-item svg,
.sidebar-nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-user {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-user-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.sidebar-user-email {
    font-size: 12px;
    color: #718096;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 32px 40px;
    background-color: #f5f7fa;
    margin-left: 240px;
    width: calc(100% - 240px);
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
}

.page-subtitle {
    font-size: 14px;
    color: #718096;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-add {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-add:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ============================================
   FLIGHTS LIST PAGE
   ============================================ */
.flights-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: #2d3748;
}

.tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.flights-table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr 1fr 1.2fr 1fr;
    padding: 16px 24px;
    background-color: #f7fafc;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr 1fr 1.2fr 1fr;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #2d3748;
    align-items: center;
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: #f7fafc;
}

.route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.route-arrow {
    color: #cbd5e0;
}

.date {
    color: #4a5568;
}

.time {
    font-size: 12px;
    color: #a0aec0;
}

.price {
    font-weight: 600;
}

.table-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #718096;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination button {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state-icon {
    margin-bottom: 24px;
}

.empty-state-icon svg {
    width: 120px;
    height: 120px;
    color: #cbd5e0;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 24px;
}

/* ============================================
   ADD FLIGHT MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #718096;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

.modal-body {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.companions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.companion-tag {
    padding: 6px 12px;
    background-color: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.companion-tag:hover {
    background-color: #e2e8f0;
}

.companion-tag.selected {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.btn-save {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-save:hover {
    background-color: #1d4ed8;
}

/* ============================================
   MY STATS PAGE
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
}

.stat-subtext {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 4px;
}

.stats-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.progress-info {
    flex: 1;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 4px;
}

.progress-sublabel {
    font-size: 12px;
    color: #a0aec0;
}

.progress-value {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.record-item {
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.record-label {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.record-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.record-subtext {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

/* Flight Map */
.flight-map {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #1e3a5f;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ============================================
   LEADERBOARD PAGE
   ============================================ */
.leaderboard-banner {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-banner-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.leaderboard-banner-content p {
    font-size: 14px;
    opacity: 0.9;
}

.leaderboard-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.leaderboard-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-tabs {
    display: flex;
    gap: 16px;
}

.leaderboard-tab {
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    border-radius: 6px;
    transition: all 0.2s;
}

.leaderboard-tab.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.leaderboard-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
}

.leaderboard-sort select {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    background-color: white;
}

.user-rank-card {
    background-color: #f7fafc;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.rank-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-rank-info {
    flex: 1;
}

.user-rank-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}

.user-rank-meta {
    font-size: 13px;
    color: #718096;
}

.user-rank-distance {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.user-rank-progress {
    font-size: 12px;
    color: #2563eb;
    margin-top: 4px;
}

.leaderboard-list {
    padding: 8px 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    transition: background-color 0.2s;
}

.leaderboard-item:hover {
    background-color: #f7fafc;
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #4a5568;
}

.leaderboard-rank.top-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 50%;
}

.leaderboard-rank.top-2 {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    color: white;
    border-radius: 50%;
}

.leaderboard-rank.top-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 50%;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaderboard-user-info {
    flex: 1;
}

.leaderboard-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leaderboard-user-flights {
    font-size: 12px;
    color: #a0aec0;
}

.leaderboard-distance {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.leaderboard-achievement {
    padding: 4px 10px;
    background-color: #f7fafc;
    border-radius: 12px;
    font-size: 12px;
    color: #4a5568;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-container {
    max-width: 800px;
}

.profile-header {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background-color: #10b981;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.profile-header-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.profile-header-info p {
    font-size: 14px;
    color: #718096;
}

.profile-section {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-section-icon {
    width: 24px;
    height: 24px;
    color: #2563eb;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-form-grid.full {
    grid-template-columns: 1fr;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-save-changes {
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-save-changes:hover {
    background-color: #1d4ed8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
        font-size: 13px;
    }

    .table-header :nth-child(7),
    .table-header :nth-child(8),
    .table-row :nth-child(7),
    .table-row :nth-child(8) {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 0;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
    }

    .sidebar-nav-item {
        white-space: nowrap;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-actions {
        width: 100%;
    }

    .btn-add {
        flex: 1;
        justify-content: center;
    }

    .flights-table {
        overflow-x: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .records-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-banner {
        flex-direction: column;
        text-align: center;
    }

    .btn-add,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 15px;
    }

    .sidebar-user {
        padding: 12px 16px;
    }

    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .btn-add,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }

    .sidebar {
        padding: 12px 0;
    }

    .sidebar-nav {
        padding: 0 12px;
        gap: 8px;
    }

    .sidebar-nav-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .logo-img {
        width: 280px !important;
        height: 40px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}
/* ═══════════════════════════════════════════
   FIRST FLIGHT CELEBRATION
   Add these rules to your main CSS file.
   The canvas is injected by JS — no HTML needed.
═══════════════════════════════════════════ */

/* Full-screen canvas (pointer-events:none so it never blocks clicks) */
#celebration-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
}

/* Toast — richer layout than the generic coming-soon toast */
#first-flight-toast {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;

    background: #1a202c;
    color: #fff;
    padding: 18px 28px;
    border-radius: 12px;
    max-width: min(480px, 90vw);
    width: max-content;

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#first-flight-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Main line — slightly larger */
#first-flight-toast .fft-main {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

/* Hint / sub-copy — muted */
#first-flight-toast .fft-hint {
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 8px;
    width: 100%;
}

#first-flight-toast .fft-hint strong {
    color: #fbbf24;
    font-weight: 600;
}
/* ═══════════════════════════════════════════
   FIRST FLIGHT ONBOARDING TOAST
═══════════════════════════════════════════ */
/* .first-flight-toast {
    position: fixed; bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1a202c; color: #fff;
    padding: 12px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
    max-width: 90%; text-align: center;
}
.first-flight-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
} */