/* dashboard.css v2.0 */

.dashboard-container {
    padding-top: 36px;
    padding-bottom: 48px;
}

/* ---- Hero ---- */
.dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding: 28px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(27, 64, 121, 0.18), rgba(13, 110, 139, 0.12));
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dash-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--air-force-blue);
    margin-bottom: 8px;
}

.profile-heading {
    text-align: left;
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--heading-color);
}

.profile-subtitle {
    text-align: left;
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.dash-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--bg-content);
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: var(--text-secondary);
    animation: dashFloat 3s ease-in-out infinite;
}

.dash-stat-chip:nth-child(2) { animation-delay: 0.6s; }

.dash-stat-chip i {
    font-size: 1.2rem;
    color: var(--mindaro-accent);
}

.dash-stat-chip strong {
    color: var(--heading-color);
    font-size: 1.1rem;
}

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

/* ---- Hub Nav ---- */
.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-hub-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    min-height: 118px;
    padding: 14px 10px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.hub-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 0.4s ease;
}

.dashboard-hub-btn i {
    font-size: 1.5rem;
}

.dashboard-hub-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.dashboard-hub-btn:hover .hub-icon-wrap {
    transform: rotate(-8deg) scale(1.1);
    animation: hubPulse 0.8s ease infinite alternate;
}

@keyframes hubPulse {
    from { box-shadow: 0 0 0 0 rgba(210, 250, 92, 0.35); }
    to { box-shadow: 0 0 0 8px rgba(210, 250, 92, 0); }
}

.dashboard-hub-btn.trip-btn { background: var(--air-force-blue); color: #fff; }
.dashboard-hub-btn.profile-btn { background: var(--bg-content); color: var(--yale-blue); border: 1px solid var(--yale-blue); }
.dashboard-hub-btn.tools-btn { background: var(--mindaro-accent); color: var(--dark-blue-bg, #0A192F); }
.dashboard-hub-btn.verify-btn { background: #25D366; color: #fff; }
.dashboard-hub-btn.logout-btn { background: #c0392b; color: #fff; }

/* ---- Sections ---- */
.dash-section { margin-bottom: 36px; }

.dash-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
}

.saved-itineraries-heading {
    text-align: left;
    font-size: 1.45rem;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--heading-color);
}

.saved-itineraries-heading i { color: var(--air-force-blue); }

.dash-quota {
    margin: 0 !important;
    font-size: 0.9rem !important;
}

.dash-quota i { margin-right: 6px; color: var(--mindaro-accent); }

/* ---- Trip Cards ---- */
#saved-itineraries-list,
#mysql-itineraries-list {
    min-height: 120px;
}

#loading-message,
.no-itineraries-message {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding: 40px 20px;
    width: 100%;
    grid-column: 1 / -1;
}

.dash-trip-card {
    border-radius: 14px !important;
    overflow: hidden;
}

.dash-trip-card .card-image-container {
    position: relative;
}

.card-image-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.trip-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.trip-source-whatsapp { background: rgba(37, 211, 102, 0.9); color: #fff; }
.trip-source-web { background: rgba(27, 64, 121, 0.88); color: #fff; }
.trip-source-cloud { background: rgba(13, 110, 139, 0.88); color: #fff; }

.dash-trip-card .card-actions {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
}

.dash-trip-card .action-btn {
    flex: 1;
    padding: 11px;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-decoration: none;
    color: #fff;
}

.dash-trip-card .action-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dash-trip-card .action-btn i { margin: 0; }

.action-btn.view-btn { background-color: var(--yale-blue, #1B4079); }
.action-btn.view-btn:hover { background-color: #163561; }
.action-btn.share-btn { background-color: var(--air-force-blue, #4D7C8A); }
.action-btn.share-btn:hover { background-color: #426975; }
.action-btn.book-btn { background-color: #10B981; }
.action-btn.book-btn:hover { background-color: #0F9D6B; }
.action-btn.delete-btn { background-color: #EF4444; }
.action-btn.delete-btn:hover { background-color: #D93A3A; }

/* ---- Profile ---- */
.profile-card-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-form-content {
    max-width: 580px;
    width: 100%;
    padding: 30px;
    border-radius: 16px;
    background-color: var(--bg-content);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.profile-detail-group {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
}

.profile-detail-group:last-child { border-bottom: none; }

.profile-detail-group label {
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.profile-detail-group p {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0 28px;
    word-break: break-word;
}

.profile-detail-group .small-text { font-size: 0.85rem; }

.profile-phone-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.profile-phone-verified.is-verified { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.profile-phone-verified.is-pending { background: rgba(251, 191, 36, 0.15); color: #d97706; }

.profile-actions { margin-top: 28px; text-align: center; }

.profile-actions .logout-btn {
    width: 100%;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    background-color: var(--air-force-blue);
    color: #fff;
    border: none;
}

.profile-actions .logout-btn:hover { background-color: #426975; }

/* ---- Settings blocks ---- */
.setting-block {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    background-color: var(--yale-blue);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.setting-header:hover { background-color: #163561; }
.setting-header i { color: var(--mindaro-accent); margin-right: 8px; }
.setting-header .toggle-icon { transition: transform 0.3s ease; margin-right: 0; }
.setting-block.active .toggle-icon { transform: rotate(180deg); }

.setting-content {
    padding: 15px 20px;
    background-color: var(--bg-main);
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.setting-block.active .setting-content {
    max-height: 500px;
    display: block;
}

.setting-message { font-size: 0.9rem; margin-bottom: 15px; min-height: 1.2em; }
.setting-message.success { color: #2ecc71; }

#update-name-form label,
#update-password-form label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

#update-name-form input,
#update-password-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-content);
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .dash-hero { padding: 22px 18px; }
    .profile-heading { font-size: 1.5rem; }
    .dashboard-hub-btn { width: calc(50% - 8px); min-height: 100px; }
    .dash-section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .profile-form-content { max-width: 95%; padding: 22px 18px; }
    .dashboard-hub-btn { width: calc(50% - 8px); }
}

.profile-section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 25px 0;
    color: var(--air-force-blue);
}

body:not(.dark-mode) .profile-section-title {
    color: var(--yale-blue);
}

@media (max-width: 768px) {
    .profile-section-title {
        font-size: 1.3rem;
        margin: 20px 0;
    }
}
EOF 2>&1
