/* =========================================
   MEMBER AREA STYLES
   ========================================= */

/* Login Page - Modal Style */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    padding: 50px;
}

.login-modal {
    background-color: white;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 440px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.login-modal-header {
    margin-bottom: 25px;
}

.login-subtitle {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 400;
}

.login-title {
    font-size: 36px;
    color: var(--primary-blue);
    text-transform: none;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.login-divider span {
    padding: 0 15px;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-google-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.btn-google-modal:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-google-modal:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Email/Password Form */
.email-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.email-login-form .form-group {
    text-align: left;
}

.email-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.email-login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.email-login-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.1);
}

.email-login-form input::placeholder {
    color: #aaa;
}

.btn-email-login {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-email-login:hover {
    background-color: #002d5c;
}

.btn-email-login:active {
    transform: translateY(1px);
}

.btn-email-login:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Secondary login buttons (Register, Forgot Password) */
.login-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-secondary-login {
    flex: 1;
    padding: 16px 24px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-secondary-login:hover {
    background-color: #002d5c;
}

.btn-secondary-login:active {
    transform: translateY(1px);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.login-links a {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.login-error {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #fff5f5;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 14px;
    text-align: left;
}

.login-success {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #f0fff4;
    border: 1px solid #38a169;
    border-radius: 8px;
    color: #276749;
    font-size: 14px;
    text-align: left;
}

.login-loading {
    margin-top: 25px;
    padding: 15px;
    color: #666;
    font-size: 14px;
}

.login-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

/* Legacy support for old login-card class */
.login-card {
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    margin-top: 10px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.btn-google:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Menu in Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.btn-logout {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

/* Icon-only logout button */
.btn-logout-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-logout-icon:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.btn-logout-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.card-header h2 {
    font-size: 24px;
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-footer {
    padding: 20px 25px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.btn-card {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-card:hover {
    background-color: #8a0019;
}

/* Trip Card */
.trip-countdown {
    text-align: center;
    margin-bottom: 25px;
}

.countdown-value {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-blue);
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.trip-dates {
    display: flex;
    justify-content: space-around;
}

.date-item {
    text-align: center;
}

.date-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.date-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    border-bottom: 1px solid #f0f0f0;
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.2s;
}

.quick-link:hover {
    color: var(--accent-red);
}

.link-icon {
    font-size: 20px;
}

/* Flight Card */
.flight-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flight-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.flight-direction {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    width: 70px;
}

.flight-route {
    font-weight: bold;
    color: var(--primary-blue);
    flex: 1;
}

.flight-time {
    font-size: 14px;
    color: #666;
}

/* Hotel Card */
.hotel-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.hotel-times {
    display: flex;
    gap: 30px;
}

.time-item {
    display: flex;
    flex-direction: column;
}

.time-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.time-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Trip Details Page */
.trip-dates-header {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.trip-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background-color: var(--primary-blue);
    color: white;
}

.section-icon {
    font-size: 24px;
}

.section-header h2 {
    color: white;
    margin: 0;
    font-size: 20px;
}

.section-content {
    padding: 30px;
}

/* Flight Details */
.flight-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.flight-detail-card {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.flight-type {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.flight-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.flight-route-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flight-route-detail .flight-endpoint {
    text-align: center;
}

.flight-route-detail .airport {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

.flight-route-detail .flight-time {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-top: 3px;
}

.flight-route-detail .arrow {
    font-size: 24px;
    color: var(--accent-gold);
}

.flight-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 3px;
}

.meta-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-blue);
}

.booking-ref {
    font-family: 'Courier New', monospace;
    background-color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

/* Hotel Details */
.hotel-detail-card {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.hotel-detail-card h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
}

.hotel-detail-address {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.hotel-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Itinerary */
.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.itinerary-day {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.day-number {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.day-date {
    font-size: 14px;
    color: #666;
}

.day-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.day-events li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

.day-events li:last-child {
    border-bottom: none;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-name {
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-phone {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 15px;
}

.contact-phone:hover {
    text-decoration: underline;
}

/* Utility Classes */
.no-data,
.loading-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-modal {
        padding: 35px 25px;
        border-radius: 10px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .login-card {
        padding: 30px 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .flight-details-grid {
        grid-template-columns: 1fr;
    }

    .flight-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hotel-detail-grid {
        grid-template-columns: 1fr;
    }

    .user-menu {
        flex-direction: column;
        gap: 8px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }
}
