/* Shared Glass Morphism Style for All Pages */

:root {
    --cyber-blue: #00d4ff;
    --cyber-purple: #7b2cbf;
    --cyber-teal: #14b8a6;
    --cyber-emerald: #10b981;
    --cyber-mint: #6ee7b7;
    --cyber-coral: #fb7185;
    --cyber-rose: #f43f5e;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #fbbf24;
    --stripe-blue: #635bff;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: #0f172a;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/background.jpg') center/cover no-repeat;
    filter: blur(6px) brightness(1.1);
    transform: scale(1.1);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.8));
    z-index: -1;
}

/* Container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.6s ease;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

/* Override for event cards in fleet schedule */
#fleet-schedule #events-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
}

#fleet-schedule #events-content .event-card.glass-card {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    animation: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

#fleet-schedule #events-content .event-card.glass-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--cyber-blue) !important;
}

#fleet-schedule #events-content .event-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
}

#fleet-schedule #events-content .event-header h4 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

#fleet-schedule #events-content .event-type {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: rgba(123, 44, 191, 0.15) !important;
    color: var(--cyber-purple) !important;
    border: 1px solid rgba(123, 44, 191, 0.3) !important;
}

#fleet-schedule #events-content .event-description {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

#fleet-schedule #events-content .event-time,
#fleet-schedule #events-content .event-participants {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
}

#fleet-schedule #events-content .event-time i,
#fleet-schedule #events-content .event-participants i {
    color: var(--accent-blue) !important;
    font-size: 0.85rem !important;
}

#fleet-schedule #events-content .event-actions {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
}

#fleet-schedule #events-content .event-actions .btn-primary {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    flex: 1 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#fleet-schedule #events-content .event-actions .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3) !important;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

/* Buttons */
.btn-primary {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    color: white;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 2px solid var(--cyber-blue);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyber-blue);
}

.btn-secondary:hover {
    background: var(--cyber-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Navigation */
.nav-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--cyber-blue);
    background: rgba(0, 212, 255, 0.1);
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 4rem;
}

/* Back Link */
.back-section {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    color: var(--cyber-blue);
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

.back-link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(-5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--cyber-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 2rem;
    }
    
    .nav-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Button States */
.btn-success {
    padding: 1rem 2rem;
    border: 2px solid #4ade80;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.btn-warning {
    padding: 1rem 2rem;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    padding: 0.5rem 1rem;
    border: 2px solid #f87171;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    position: relative;
    overflow: hidden;
    margin-left: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

/* Specific styles for event cards */
#fleet-schedule #events-content .event-actions .btn-success,
#fleet-schedule #events-content .event-actions .btn-warning,
#fleet-schedule #events-content .event-actions .btn-danger[data-event-id] {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    flex: 1 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Delete button specific styling */
#fleet-schedule #events-content .event-actions .btn-danger:not([data-event-id]) {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    flex: 0 !important;
    margin-left: 0.5rem !important;
}