/* TrustHub Custom Styles - Inspired by Golden Shield Logo & Blue-Gray House */
:root {
    /* Primary Color Palette - From Logo and House Image */
    --primary-blue-gray: #4A5568;        /* Main house exterior color */
    --accent-blue: #2D3748;              /* Darker blue-gray accents */
    --golden-accent: #F6D55C;            /* Golden shield and warm lighting */
    --warm-gold: #D69E2E;               /* Rich golden highlights */
    --light-blue-gray: #718096;          /* Lighter house trim */
    --soft-gray: #EDF2F7;               /* Light neutral backgrounds */
    --warm-white: #FEFEFE;              /* Clean white with warmth */
    --charcoal: #1A202C;                /* Deep sophisticated dark */
    
    /* Supporting Colors */
    --text-color: #2D3748;              /* Primary text matching house */
    --light-text: #718096;              /* Secondary text */
    --success-green: #38A169;
    --error-red: #E53E3E;
    --warning-orange: #DD6B20;
}









/* Root CSS Variables Continue */
:root {
    /* Typography */
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

/* Flash Messages Positioning */
.flash-messages {
    position: fixed;
    top: 70px; /* Below the fixed navigation */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
}

.flash-messages .alert {
    pointer-events: auto;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: none;
    font-weight: 500;
}

.flash-messages .alert-success {
    background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
    border-left: 4px solid var(--success-green);
    color: #155724;
}

.flash-messages .alert-danger {
    background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
    border-left: 4px solid var(--error-red);
    color: #721c24;
}

.flash-messages .alert-warning {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFEAA7 100%);
    border-left: 4px solid var(--warning-orange);
    color: #856404;
}

.flash-messages .alert-info {
    background: linear-gradient(135deg, #D1ECF1 0%, #BEE5EB 100%);
    border-left: 4px solid var(--primary-blue-gray);
    color: #0c5460;
}
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--warm-white);
    margin: 0;
    padding: 0;
    padding-top: 130px; /* Space for fixed brand header and navigation */
}

/* Main content spacing */
main {
    margin-top: 50px; /* Add spacing below fixed navigation */
}

/* Container spacing for logged-in user pages */
.container {
    margin-top: 50px; /* Ensure all container content has proper spacing */
}

/* Override for containers that are already inside main */
main .container {
    margin-top: 0; /* Prevent double spacing when container is inside main */
}

/* Brand Header Styling */
.brand-header {
    background: linear-gradient(135deg, var(--primary-blue-gray) 0%, var(--accent-blue) 100%);
    border-bottom: 1px solid rgba(246, 213, 92, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.trusthub-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.agent-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.agent-logo-divider {
    width: 1px;
    height: 30px;
    background: var(--golden-accent);
    margin: 0 1rem;
    opacity: 0.6;
}

/* Hero Section - Inspired by House Image */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 85, 104, 0.85) 0%,
        rgba(45, 55, 72, 0.9) 50%,
        rgba(26, 32, 44, 0.95) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    padding: 2rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--warm-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.btn-hero-primary {
    background: linear-gradient(135deg, var(--golden-accent) 0%, var(--warm-gold) 100%);
    border: none;
    color: var(--charcoal);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(246, 213, 92, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 213, 92, 0.4);
    color: var(--charcoal);
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid var(--golden-accent);
    color: var(--golden-accent);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--golden-accent);
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* Contextual Help Button */
.contextual-help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--golden-accent);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.contextual-help-btn:hover {
    background: var(--warm-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.contextual-help-btn i {
    color: var(--charcoal);
    font-size: 1.2rem;
}

/* Responsive Hero Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* Custom Components */
.btn-accent {
    background-color: var(--warm-accent);
    border-color: var(--warm-accent);
    color: white !important;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #B7791F;
    border-color: #B7791F;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-accent {
    border: 2px solid var(--primary-blue-gray);
    color: var(--primary-blue-gray);
    background-color: transparent;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background-color: var(--primary-blue-gray);
    color: var(--warm-white);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    background-color: var(--warm-white);
    border: 1px solid rgba(74, 85, 104, 0.1);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}

.card-header {
    background-color: var(--soft-gray);
    border-bottom: 1px solid var(--light-blue-gray);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: var(--spacing-lg);
}

.card-body {
    padding: var(--spacing-lg);
}

/* Navigation */
.navbar {
    background-color: var(--warm-white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 73px; /* Position below brand header */
    left: 0;
    right: 0;
    z-index: 1020;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue-gray);
}

.navbar-nav .nav-link.active {
    color: var(--warm-accent);
}

/* Forms */
.form-control {
    border: 2px solid var(--light-blue-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--warm-white);
}

.form-control:focus {
    border-color: var(--warm-accent);
    box-shadow: 0 0 0 0.2rem rgba(214, 158, 46, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: var(--spacing-xs);
}

.form-text {
    color: var(--text-color);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.alert:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background-color: rgba(217, 83, 79, 0.1);
    color: var(--error-red);
    border-left: 4px solid var(--error-red);
}

.alert-info {
    background-color: rgba(255, 210, 0, 0.1);
    color: var(--dark-text);
    border-left: 4px solid var(--accent-yellow);
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 210, 0, 0.1);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--medium-gray);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    max-width: 45%;
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(255, 210, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: var(--spacing-lg);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: var(--spacing-lg);
}

.timeline-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-yellow);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-marker.completed {
    background-color: var(--success-green);
}

.timeline-marker.current {
    background-color: var(--accent-yellow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 210, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 210, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 210, 0, 0);
    }
}

/* Property Cards */
.property-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    background-color: var(--white);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 3rem;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-green);
}

.property-details {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-sm) 0;
}

.property-detail {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Favorite Button */
.favorite-btn {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.favorite-btn.active {
    color: var(--error-red);
}

.favorite-btn:hover {
    color: var(--error-red);
}

/* Document List */
.document-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.document-item:hover {
    background-color: var(--light-gray);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.document-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-yellow);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    color: var(--dark-text);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.document-icon:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--soft-gray) 0%, var(--warm-white) 100%);
    padding: var(--spacing-xxl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    color: var(--accent-blue);
    margin-bottom: var(--spacing-lg);
}

.hero .lead {
    color: var(--light-text);
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.05) 0%, var(--warm-white) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Marketing Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin: var(--spacing-lg) 0;
}

/* Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table th {
    background-color: var(--light-gray);
    color: var(--dark-text);
    font-weight: 600;
    border: none;
    padding: var(--spacing-md);
}

.table td {
    border: none;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--medium-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: var(--spacing-xl);
    }
    
    .timeline-content {
        max-width: none;
        margin-left: var(--spacing-lg) !important;
        margin-right: 0 !important;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-top: 2px solid var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.text-accent {
    color: var(--accent-yellow) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.border-accent {
    border-color: var(--accent-yellow) !important;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue-gray) 0%, var(--primary-blue-gray) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(214, 158, 46, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.hero p,
.hero .lead {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    color: white !important;
}

.hero .btn-outline-accent {
    color: white;
    border-color: white;
}

.hero .btn-outline-accent:hover {
    background-color: white;
    color: var(--primary-blue-gray);
    border-color: white;
}

.hero .btn-accent {
    color: white !important;
}

.hero .btn-accent:hover {
    color: white !important;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xxl) 0;
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 2rem;
    color: var(--dark-text);
}

/* White Label Support */
.brand-customized {
    /* These styles will be dynamically updated based on agent's brand settings */
}

.brand-logo {
    max-height: 50px;
    width: auto;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
