/* Valley Dashboard - Unified Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #2d9b9e;
    --primary-teal-light: #4ab9bc;
    --primary-teal-dark: #1e6b6d;
    --accent-coral: #ff8457;
    --accent-coral-light: #ffb3a1;
    --success-green: #4ade80;
    --info-blue: #3b82f6;
    --warning-amber: #fbbf24;
    --bg-cream: #fefaf7;
    --bg-light: #f5f3f0;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f5f3f0;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 35px -4px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #1e3c5f;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #1a2e4a 100%);
    color: var(--text-light);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 30px 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(77, 185, 188, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-brand {
    padding: 0 25px 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.sidebar-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-brand h3 i {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.sidebar-nav li {
    margin: 0;
}

.nav-section-title {
    padding: 12px 18px;
    margin-top: 16px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 10px;
    position: relative;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd700;
    padding-left: 24px;
}

.sidebar-nav a.active {
    color: white;
    background: rgba(77, 185, 188, 0.3);
    border-left-color: #ffd700;
    padding-left: 24px;
    font-weight: 600;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-logout {
    margin-top: auto;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 100, 61, 0.25);
    border-color: rgba(255, 100, 61, 0.5);
    color: #ffb3a1;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 82px;
}

.dashboard-header {
    background: white;
    padding: 16px 40px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 500;
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0.95) 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    border-radius: 6px;
}

.header-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-coral) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(45, 155, 158, 0.3);
}

.header-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.header-welcome p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ===== CONTENT AREA ===== */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(45, 155, 158, 0.1);
    margin-bottom: 24px;
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.dashboard-card h3 i {
    color: var(--primary-teal);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
    padding: 13px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 155, 158, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 155, 158, 0.4);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .dashboard-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
    }

    .dashboard-header {
        padding: 14px 20px;
        left: 250px;
    }

    .header-logo img {
        height: 45px;
        max-width: 120px;
    }

    .header-welcome {
        gap: 12px;
    }

    .header-welcome h2 {
        font-size: 16px;
    }

    .header-welcome p {
        font-size: 12px;
    }

    .user-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .dashboard-content {
        padding: 24px;
    }

    .dashboard-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 0;
    }

    .main-content {
        margin-left: 0;
        margin-top: 100px;
    }

    .dashboard-header {
        position: fixed;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        padding: 12px 16px;
        justify-content: space-between;
    }

    .header-left {
        flex: 1;
    }

    .header-logo img {
        height: 40px;
        max-width: 100px;
    }

    .header-welcome {
        flex: 1;
        gap: 10px;
    }

    .header-welcome h2 {
        font-size: 14px;
    }

    .header-welcome p {
        font-size: 11px;
        display: none;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .sidebar-logout {
        display: none;
    }

    .dashboard-content {
        padding: 16px;
    }

    .dashboard-card {
        padding: 20px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 155, 158, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 155, 158, 0.6);
}
/* ===== FORM SECTIONS ===== */
.form-section {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #ff6b6b;
}

.form-section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: #ff6b6b;
    font-size: 18px;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    gap: 8px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-label:hover {
    color: #ff6b6b;
}

/* ===== ITINERARY DAY BOXES ===== */
.day-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.day-box:hover {
    border-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.day-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
}

.day-textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-add-day,
.btn-remove-day {
    padding: 8px 12px;
    border: 1px solid #ff6b6b;
    background: white;
    color: #ff6b6b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-add-day:hover {
    background: #ff6b6b;
    color: white;
}

.btn-remove-day:hover {
    background: #ff3333;
    border-color: #ff3333;
    color: white;
}

/* DAY BOX STYLING */
.day-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ff8457;
    margin-bottom: 12px;
}

.day-box .form-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.day-textarea {
    font-size: 14px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    resize: vertical;
}

.btn-remove {
    padding: 8px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.form-section {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-section-title {
    padding-bottom: 12px;
    border-bottom: 2px solid #ffe0e0;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #ff6b6b;
}

