/* ==========================================================================
   TREKKING MANAGEMENT APPLICATION - AESTHETIC & MODERN DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Rich Natural Aesthetic Palette */
    --primary: #0d9488;               /* Teal Emerald */
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;
    --primary-subtle: #ccfbf1;
    --primary-border: #99f6e4;
    --primary-glow: rgba(13, 148, 136, 0.2);

    --accent-amber: #f59e0b;          /* Golden Sunrise */
    --accent-amber-light: #fffbeb;
    --accent-amber-border: #fde68a;

    --accent-blue: #3b82f6;           /* Alpine Sky */
    --accent-blue-light: #eff6ff;
    
    --accent-purple: #8b5cf6;
    --accent-purple-light: #f5f3ff;

    --dark: #0f172a;                  /* Deep Slate */
    --dark-surface: #1e293b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 20px 35px -8px rgba(15, 23, 42, 0.09), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.25);

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

/* Base resets & typography */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.025em;
}

main {
    flex: 1 0 auto;
}

/* Aesthetic Floating Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.85rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.navbar-custom .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.brand-icon-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    color: #ffffff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted) !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

/* User Role Badges */
.user-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
}

.role-admin {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.role-staff {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.role-trekker {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

/* Hero Section with Visual Layers */
.hero-aesthetic {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 50%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 3.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    margin-bottom: 3.5rem;
}

.hero-aesthetic::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.hero-heading {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-heading .text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* Floating Image Container with Floating Cards */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-img {
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: var(--transition);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 2;
}

.hero-floating-card-top {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
}

/* Category Pills Strip */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.category-pill {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-body);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Modern Trek Card Grid */
.trek-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trek-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-border);
}

.trek-card-banner {
    height: 130px;
    background: linear-gradient(135deg, #0d9488 0%, #1e293b 100%);
    position: relative;
    padding: 1.25rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trek-card-banner.bg-moderate {
    background: linear-gradient(135deg, #d97706 0%, #1e293b 100%);
}

.trek-card-banner.bg-hard {
    background: linear-gradient(135deg, #e11d48 0%, #0f172a 100%);
}

.trek-card-body {
    padding: 1.4rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.trek-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
}

.trek-meta-row:last-child {
    border-bottom: none;
}

/* Feature Showcase Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-border);
}

.feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

/* Stat & KPI Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

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

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.stat-icon.icon-sky { background: var(--accent-blue-light); color: var(--accent-blue); }
.stat-icon.icon-amber { background: var(--accent-amber-light); color: var(--accent-amber); }
.stat-icon.icon-purple { background: var(--accent-purple-light); color: var(--accent-purple); }

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Form Controls */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.68rem 1rem;
    font-size: 0.94rem;
    font-family: var(--font-body);
    color: var(--text-heading);
    background-color: #ffffff;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

/* Custom Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-success {
    background: #10b981;
    border: none;
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

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

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

.btn-outline-secondary {
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: #ffffff;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: var(--text-heading);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.32rem 0.72rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-open, .badge-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}

.badge-pending, .badge-warning {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.badge-closed, .badge-danger, .badge-cancelled {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
}

.badge-ongoing, .badge-info {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd;
}

.badge-completed, .badge-dark {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.badge-difficulty-easy {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-difficulty-moderate {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-difficulty-hard {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Clean Tables */
.table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #ffffff;
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    color: var(--text-body);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table tbody td {
    padding: 1.05rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    background: #ffffff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover td {
    background-color: #f8fafc;
}

/* Page Headers */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Details Spec Box */
.spec-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.spec-box:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.spec-box .spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.spec-box .spec-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

/* Testimonial / Story Card */
.story-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
}

/* Clean Footer */
.footer-clean {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .hero-aesthetic {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }
    .hero-heading {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-floating-card, .hero-floating-card-top {
        display: none;
    }
}
