/* globals.css - Design System for Sailani Travels */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #064e3b; /* Emerald 900 */
    --primary-light: #065f46;
    --accent: #d97706; /* Amber 600 */
    --accent-hover: #b45309;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* Cards & Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

/* Itinerary Maker Styles */
.itinerary-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 10px;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.step-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step-pill.completed {
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

/* Premium Animated Dropdowns */
.custom-select-luxury {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    font-weight: 500;
}

.custom-select-luxury:hover {
    border-color: var(--primary);
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.08);
}

.custom-select-luxury:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.15), 0 8px 20px rgba(6, 78, 59, 0.1);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
}

/* Animation for the glow effect */
@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 78, 59, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(6, 78, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 78, 59, 0); }
}

.custom-select-luxury.glow-active {
    animation: glowPulse 2s infinite;
}

/* Custom Luxury Select Component */
.luxury-select-wrapper {
    position: relative;
    width: 200px;
    user-select: none;
}

.luxury-select-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-select-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.1);
    transform: translateY(-1px);
}

.luxury-select-wrapper.active .luxury-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

.luxury-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 6px;
}

.luxury-select-wrapper.active .luxury-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.luxury-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.luxury-option i {
    width: 16px;
    opacity: 0.7;
}

.luxury-option:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.luxury-option.active {
    background: #ecfdf5;
    color: var(--primary);
    font-weight: 700;
}

.luxury-option.active i {
    opacity: 1;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Hotel Rating Filters */
.filter-btn {
    border: 1px solid var(--border);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hotel Card Premium Look */
.hotel-card {
    border: 1px solid var(--border);
    background: white;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.hotel-card.selected {
    background: #ecfdf5;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Print Styles for Itinerary */
@media print {
    .sidebar, .top-header, .itinerary-steps, #prevBtn, #nextBtn, .btn-accent, .btn-primary {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    body {
        background: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    #reviewCard {
        display: block !important;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .summary-row {
        border-bottom: 1px solid #eee !important;
    }
}
