/* ============================================================================
   Travel Agency Application - Main Styles
   ============================================================================ */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c5530;
    --primary-hover: #1e3a21;
    --secondary-color: #007bff;
    --background-color: #f8f9fa;
    --white: #fff;
    --gray-light: #f0f0f0;
    --gray-medium: #666;
    --gray-dark: #333;
    --shadow-light: 0 2px 4px rgba(0,0,0,.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s ease;
    --navbar-height: 88px;
}

/* ============================================================================
   Customer Layout Styles
   ============================================================================ */
.customer-layout body {
    background-color: var(--background-color);
}

.customer-layout .navbar-brand {
    font-weight: bold;
}

.customer-layout .sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--white);
    box-shadow: var(--shadow-light);
}

.customer-layout .main-content {
    padding: 20px;
}

.customer-layout .nav-link.active {
    background-color: var(--secondary-color);
    color: white !important;
}

.customer-layout .card {
    box-shadow: var(--shadow-light);
    border: 0;
}

/* ============================================================================
<<<<<<< Updated upstream
=======
   Customer Page Specific Styles
   ============================================================================ */
.customer-page .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 120px);
}

.customer-page h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.customer-page h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.customer-page h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.customer-page .quick-actions-section,
.customer-page .bookings-section,
.customer-page .activity-section,
.customer-page .deadlines-section,
.customer-page .family-actions {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.customer-page .quick-actions-section h2,
.customer-page .bookings-section h2,
.customer-page .activity-section h2,
.customer-page .deadlines-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: block;
    width: 100%;
    padding-bottom: 0.75rem;
}

.customer-page .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.customer-page .action-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    text-align: center;
}

.customer-page .action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: inherit;
}

.customer-page .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3e6b42);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.customer-page .action-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.customer-page .action-card p {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin: 0;
}

.customer-page .bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.customer-page .booking-card {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.customer-page .booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.customer-page .booking-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: white;
}

.customer-page .booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.customer-page .booking-status.confirmed {
    background: #d1edff;
    color: #0c63e4;
}

.customer-page .booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.customer-page .booking-details {
    margin-bottom: 1.5rem;
}

.customer-page .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
}

.customer-page .detail-item i {
    color: var(--primary-color);
    width: 16px;
}

.customer-page .booking-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.customer-page .activity-list {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.customer-page .activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.customer-page .activity-item:last-child {
    border-bottom: none;
}

.customer-page .activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.customer-page .activity-content p:first-child {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.customer-page .activity-content p:last-child {
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.customer-page .activity-time {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

.customer-page .deadlines-list {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.customer-page .deadline-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.customer-page .deadline-item:last-child {
    border-bottom: none;
}

.customer-page .deadline-item.urgent .deadline-icon {
    background: #dc3545;
}

.customer-page .deadline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.customer-page .deadline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.customer-page .deadline-content p {
    color: var(--gray-medium);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Button Variants for Customer Pages */
.customer-page .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.customer-page .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.customer-page .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Section improvements */
.customer-page .profile-page-content,
.customer-page .support-options,
.customer-page .family-members-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    overflow: hidden;
}

.customer-page .profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 0;
}

.customer-page .profile-body {
    padding: 2rem;
}

/* ============================================================================
>>>>>>> Stashed changes
   Communication Components
   ============================================================================ */
.communication-customer-list {
    max-height: 300px;
    overflow-y: auto;
}

/* ============================================================================
   Dashboard Progress Bars (for dynamic width styling)
   ============================================================================ */
.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-fill.families {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.bar-fill.members {
    background: linear-gradient(90deg, #007bff, #6610f2);
}

.bar-fill.individuals {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

/* ============================================================================
   Packages Page Styles
   ============================================================================ */

/* Hero Section */
.packages-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

/* Filter Section */
.packages-filter {
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.package-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-image i {
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
}

.package-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-content {
    padding: 2rem;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.package-description {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
<<<<<<< Updated upstream
=======
    line-clamp: 3;
>>>>>>> Stashed changes
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Package Details Grid */
.package-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.package-detail i {
    color: var(--primary-color);
    width: 16px;
}

/* Package Services */
.package-services {
    margin-bottom: 1.5rem;
}

.package-services h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: #f0f8f0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Package Footer */
.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price-label {
    font-size: 0.8rem;
    color: var(--gray-medium);
    font-weight: normal;
}

.package-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.package-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* Availability Badges */
.availability-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.availability-badge.limited {
    background: #ffc107;
    color: var(--gray-dark);
}

.availability-badge.full {
    background: #dc3545;
}

/* No Packages State */
.no-packages {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray-medium);
}

.no-packages i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */
@media (max-width: 768px) {
    .packages-hero {
        padding: 4rem 0 2rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-details {
        grid-template-columns: 1fr;
    }
    
    .customer-layout .main-content {
        padding: 15px;
    }
    
    .package-content {
        padding: 1.5rem;
    }
<<<<<<< Updated upstream
=======
    
    /* Customer Page Responsive */
    .customer-page .main-content {
        padding: 1rem 0.5rem;
    }
    
    .customer-page .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .customer-page .action-card {
        padding: 1.5rem;
    }
    
    .customer-page .bookings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customer-page .booking-card {
        padding: 1rem;
    }
    
    .customer-page .booking-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .customer-page .booking-actions .btn {
        text-align: center;
        justify-content: center;
    }
    
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .welcome-stats {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .customer-page .deadline-item,
    .customer-page .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .customer-page .deadline-content,
    .customer-page .activity-content {
        text-align: left;
    }
>>>>>>> Stashed changes
}

@media (max-width: 576px) {
    .package-content {
        padding: 1rem;
    }
    
<<<<<<< Updated upstream
=======
    /* Customer Page Mobile */
    .customer-page .main-content {
        padding: 0.75rem 0.25rem;
    }
    
    .customer-page .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-page .action-card {
        padding: 1rem;
    }
    
    .customer-page .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .dashboard-welcome {
        padding: 1.5rem 0.75rem;
    }
    
    .welcome-content h1 {
        font-size: 1.8rem;
    }
    
    .welcome-stats {
        gap: 1rem;
    }
    
    .customer-page h2 {
        font-size: 1.5rem;
    }
    
    .customer-page .booking-card,
    .customer-page .activity-list,
    .customer-page .deadlines-list {
        padding: 1rem;
    }
    
}
>>>>>>> Stashed changes
    .packages-hero {
        padding: 3rem 0 1.5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================================================
   Utility Classes
   ============================================================================ */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-light) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.rounded-large-custom {
    border-radius: var(--border-radius-large) !important;
}

.transition-custom {
    transition: var(--transition) !important;
}

/* Additional utility classes */
.scrollable-card {
    max-height: 300px;
    overflow-y: auto;
}

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

.margin-top-3 {
    margin-top: 3rem;
}

.margin-top-1 {
    margin-top: 1rem;
}

.display-inline-block {
    display: inline-block;
}

.provider-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
}

/* ============================================================================
   Customer Dashboard & Profile Pages
   ============================================================================ */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-large);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.welcome-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.welcome-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.family-actions {
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-page-content {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-breadcrumb {
    opacity: 0.8;
    font-size: 0.9rem;
}

.profile-body {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
<<<<<<< Updated upstream
=======
    background-color: white;
>>>>>>> Stashed changes
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-control:disabled {
    background-color: #f8f9fa;
    color: var(--gray-medium);
}

<<<<<<< Updated upstream
=======
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.customer-page textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.customer-page select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

>>>>>>> Stashed changes
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
<<<<<<< Updated upstream
=======
    text-align: center;
    justify-content: center;
    min-height: 44px; /* Better touch target */
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.25);
}

.btn:active {
    transform: translateY(0);
>>>>>>> Stashed changes
}

.btn-primary {
    background: var(--primary-color);
    color: white;
<<<<<<< Updated upstream
=======
    border: 2px solid var(--primary-color);
>>>>>>> Stashed changes
}

.btn-primary:hover {
    background: var(--primary-hover);
<<<<<<< Updated upstream
    transform: translateY(-2px);
=======
    border-color: var(--primary-hover);
    color: white;
>>>>>>> Stashed changes
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: #6c757d;
    color: white;
<<<<<<< Updated upstream
=======
    border: 2px solid #6c757d;
>>>>>>> Stashed changes
}

.btn-secondary:hover {
    background: #5a6268;
<<<<<<< Updated upstream
=======
    border-color: #5a6268;
>>>>>>> Stashed changes
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
<<<<<<< Updated upstream
=======
    border: 2px solid #17a2b8;
>>>>>>> Stashed changes
}

.btn-info:hover {
    background: #138496;
<<<<<<< Updated upstream
    color: white;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
=======
    border-color: #138496;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 2px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

/* Action buttons container improvements */
.customer-page .action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.5rem;
}

.customer-page .action-buttons .btn {
    flex: none; /* Prevent buttons from stretching */
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.1rem;
>>>>>>> Stashed changes
}

.alert-success {
    background: #d1edff;
<<<<<<< Updated upstream
    color: #0c5460;
    border: 1px solid #b8daff;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
=======
    color: #155724;
    border-color: #b3d4fc;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.customer-page .alert {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
>>>>>>> Stashed changes
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .welcome-stats {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

/* ============================================================================
   Family Hierarchy & Tree Styles
   ============================================================================ */
.family-hierarchy-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.family-nav {
    margin-bottom: 2rem;
}

.family-tree-section {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    margin-bottom: 2rem;
}

.family-tree {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.family-level {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.family-member-node {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    text-align: center;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    transition: var(--transition);
}

.family-member-node:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.parent-node {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
}

.parent-node .member-info h3 {
    color: white;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--gray-medium);
}

.parent-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.member-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.member-phone {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
}

.parent-node .member-phone {
    color: rgba(255, 255, 255, 0.8);
}

.member-role {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.parent-node .member-role {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.level-children {
    margin-top: 2rem;
}

.level-children::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary-color);
}

.family-connections {
    position: absolute;
    top: -1.5rem;
    left: 0;
    right: 0;
    height: 1.5rem;
    z-index: 1;
}

.family-connection-line {
    position: absolute;
    background: var(--primary-color);
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.invite-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.invite-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.invite-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.invite-form .form-group {
    margin: 0;
    min-width: 200px;
}

.family-stats-section {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .family-level {
        gap: 1rem;
    }
    
    .family-member-node {
        min-width: 150px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .invite-form {
        flex-direction: column;
        align-items: center;
    }
    
    .invite-form .form-group {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================================================
   Bootstrap Grid Compatibility for Legacy Components
   ============================================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 768px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================================================
   Customer Page Components
   ============================================================================ */
/* Bookings */
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.booking-card {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: var(--transition);
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.booking-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.booking-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: #28a745; color: white; }
.status-pending { background: #ffc107; color: #212529; }
.status-completed { background: #17a2b8; color: white; }
.status-cancelled { background: #dc3545; color: white; }

.booking-details {
    padding: 1.5rem;
}

.booking-details h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-medium);
}

.booking-actions {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Payments */
.payments-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-card {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.payment-card.urgent {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.payment-amount {
    text-align: right;
}

.amount-due {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.amount-label {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.payment-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item .label {
    color: var(--gray-medium);
}

.detail-item .value.overdue {
    color: #dc3545;
    font-weight: 600;
}

.payment-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-history-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.payment-date {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

.payment-method {
    margin: 0;
    color: var(--gray-medium);
    font-size: 0.875rem;
}

.amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.amount.balance {
    color: #dc3545;
}

/* Documents */
.document-progress {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary-color);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 1.5rem;
    border-left: 4px solid #e9ecef;
    transition: var(--transition);
}

.document-card.status-approved {
    border-left-color: #28a745;
    background: #f8fff9;
}

.document-card.status-pending {
    border-left-color: #ffc107;
    background: #fffef7;
}

.document-card.status-rejected {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.document-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.required-badge {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge:not(.status-approved):not(.status-pending):not(.status-rejected) {
    background: #e9ecef;
    color: #495057;
}

.document-upload {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.upload-placeholder {
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.upload-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Support */
.support-options {
    margin-bottom: 2rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.support-card {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e6b42 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 1rem 1.5rem;
    display: none;
    color: var(--gray-medium);
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-details small {
    color: var(--gray-medium);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-medium);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-medium);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Control Static */
.form-control-static {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Utility Classes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .bookings-grid,
    .documents-grid,
    .support-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-header,
    .payment-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .payment-history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================================
   Layout Fixes for Guest Pages (merged from layout.css)
   ============================================================================ */

/* Fix for sticky navbar covering content */
body {
    padding-top: 0;
}

main {
    margin-top: var(--navbar-height);
    transition: margin-top 0.3s ease;
}

.page-header {
    padding-top: 2rem;
}

.hero {
    margin-top: 0;
}

/* Ensure navbar is properly positioned */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
