/* =====================================================
   Staff Ride - Modern UI Framework v3.0
   Dark Navy + Gold Accent Design System
   ===================================================== */

:root {
    --primary: #0f1b4d;
    --primary-light: #1a2d6b;
    --primary-dark: #080e29;
    --secondary: #f4a261;
    --secondary-light: #f4d35e;
    --accent: #e76f51;
    --success: #2a9d8f;
    --success-light: #4ecdc4;
    --danger: #e63946;
    --warning: #f4a261;
    --info: #457b9d;
    --light: #f8f9fa;
    --dark: #1d3557;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(244, 162, 97, 0.15);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 50%, #f5f7fa 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-staffride {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(20px);
}

.navbar-staffride .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white) !important;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.navbar-staffride .navbar-brand i {
    color: var(--secondary);
    font-size: 1.6rem;
    animation: float 3s ease-in-out infinite;
}

.navbar-staffride .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 1.2rem 1rem !important;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.navbar-staffride .nav-link:hover,
.navbar-staffride .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.08);
}

.navbar-staffride .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
    animation: slideIn 0.3s ease;
}

.navbar-staffride .badge-notification {
    position: absolute;
    top: 0.7rem;
    right: 0.2rem;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* =====================================================
   CARDS
   ===================================================== */
.card-staffride {
    background: var(--white);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card-staffride::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.card-staffride:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-staffride:hover::before { opacity: 1; }

.card-staffride .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.card-staffride .card-header-gold {
    background: linear-gradient(135deg, #d4a574 0%, var(--secondary) 100%);
}

.card-staffride .card-header-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-staffride {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-staffride::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-staffride:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 27, 77, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 27, 77, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 157, 143, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
}

.btn-whatsapp:hover { color: white; transform: translateY(-2px); }

/* =====================================================
   FORMS
   ===================================================== */
.form-control-staffride {
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control-staffride:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 27, 77, 0.08);
    outline: none;
}

.form-label-staffride {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* =====================================================
   STATS CARDS
   ===================================================== */
.stat-card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card-modern .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-bounce);
}

.stat-card-modern:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-modern .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-card-modern .stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-staffride {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a0f1e 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-staffride::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-staffride::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-staffride .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-staffride .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* =====================================================
   STEP PROGRESS
   ===================================================== */
.step-progress-modern {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step-progress-modern::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--gray-light);
    z-index: 0;
}

.step-item-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-item-modern .step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
    border: 3px solid var(--gray-light);
    font-size: 1.1rem;
}

.step-item-modern.active .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(15, 27, 77, 0.3);
}

.step-item-modern.completed .step-circle {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    border-color: var(--success);
}

.step-item-modern .step-label {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    text-align: center;
}

.step-item-modern.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

/* =====================================================
   PLAN CARDS
   ===================================================== */
.plan-card-modern {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.plan-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--secondary);
}

.plan-card-modern.selected {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(15, 27, 77, 0.15);
}

.plan-card-modern .plan-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-card-modern .plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -2px;
}

.plan-card-modern .plan-price small {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* =====================================================
   CALENDAR / DAY CARDS
   ===================================================== */
.day-card-modern {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.day-card-modern:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.day-card-modern.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(15, 27, 77, 0.03) 0%, rgba(244, 162, 97, 0.03) 100%);
    box-shadow: 0 0 20px rgba(15, 27, 77, 0.08);
}

.day-card-modern .day-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.day-card-modern .day-name {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.day-card-modern .day-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* =====================================================
   SHIFT OPTIONS
   ===================================================== */
.shift-option-modern {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shift-option-modern:hover {
    border-color: var(--primary-light);
    background: rgba(15, 27, 77, 0.02);
}

.shift-option-modern.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(15, 27, 77, 0.05) 0%, rgba(244, 162, 97, 0.05) 100%);
    box-shadow: 0 0 15px rgba(15, 27, 77, 0.08);
}

.shift-option-modern .shift-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.shift-option-modern .shift-type {
    font-size: 0.75rem;
    color: var(--gray);
}

/* =====================================================
   TABLES
   ===================================================== */
.table-staffride {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-staffride thead th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-staffride tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-staffride tbody tr:hover {
    background: linear-gradient(90deg, rgba(15, 27, 77, 0.02) 0%, transparent 100%);
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.badge-staffride {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge-confirmed { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-completed { background: #d1ecf1; color: #0c5460; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #e2e3e5; color: #383d41; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-unpaid { background: #fff3cd; color: #856404; }
.badge-boarding { background: #cce5ff; color: #004085; }
.badge-in-progress { background: #e2d4f0; color: #4a148c; }

/* =====================================================
   PAYMENT CARD
   ===================================================== */
.payment-card-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.payment-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

/* =====================================================
   REFERENCE CODE
   ===================================================== */
.ref-code-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--secondary);
    padding: 1.25rem 2.5rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.ref-code-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer-staffride {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero-staffride .hero-title { font-size: 2.2rem; }
    .step-progress-modern { overflow-x: auto; padding-bottom: 1rem; }
    .step-progress-modern::before { display: none; }
    .plan-card-modern .plan-price { font-size: 2rem; }
    .navbar-staffride .navbar-brand { font-size: 1.1rem; }
    .stat-card-modern .stat-value { font-size: 1.8rem; }
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.spinner-staffride {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-staffride {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress-staffride {
    height: 8px;
    border-radius: 4px;
    background: var(--gray-light);
    overflow: hidden;
}

.progress-staffride .progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* =====================================================
   GLASS MORPHISM
   ===================================================== */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}
