/* Paradigm Realty x Trinesis - AI Transformation Proposal */
/* Real Estate Industry Theme - Luxury & Professional */

:root {
    --primary-dark: #1a1f3c;
    --primary-blue: #2c3e6e;
    --accent-gold: #c9a962;
    --accent-gold-light: #e5d4a1;
    --text-light: #ffffff;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --border-light: #e0e0e0;
    --success: #28a745;
    --gradient-primary: linear-gradient(135deg, #1a1f3c 0%, #2c3e6e 100%);
    --gradient-gold: linear-gradient(135deg, #c9a962 0%, #e5d4a1 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-cream);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.35rem; margin-bottom: 0.875rem; }
h5 { font-size: 1.15rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-light); }

/* ===================== LOGIN PAGE ===================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-box {
    background: white;
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.login-logos img {
    height: 45px;
    max-width: 150px;
    object-fit: contain;
}

.login-logos .logo-paradigm {
    /* Dark background to make white logo visible */
    background: var(--primary-dark);
    padding: 8px 12px;
    border-radius: 6px;
}

.login-logos .logo-trinesis {
    /* Trinesis logo styling */
    border-radius: 4px;
}

.login-logos .divider {
    width: 2px;
    height: 40px;
    background: var(--accent-gold);
}

.login-box h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-dark {
    background: var(--primary-dark);
    color: var(--text-light);
}

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

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

.confidential-notice {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--gradient-primary);
    color: var(--text-light);
    position: fixed;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.sidebar-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-logos img {
    height: 28px;
    object-fit: contain;
}

.sidebar-logos .divider {
    color: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 300;
}

.sidebar-header h2 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.sidebar-header .proposal-for {
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.nav-menu {
    padding: 0.75rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section-title {
    padding: 0 1.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.nav-item.active {
    background: rgba(201, 169, 98, 0.15);
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sidebar-footer .logout-btn:hover {
    color: var(--text-light);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 3.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at bottom right, rgba(201, 169, 98, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.page-header .subtitle {
    color: var(--accent-gold-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* Page Content */
.page-content {
    padding: 3rem 4rem;
    max-width: 1400px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 2rem;
}

.card-highlight {
    border-left: 4px solid var(--accent-gold);
}

.card-dark {
    background: var(--primary-dark);
    color: var(--text-light);
}

.card-dark h3, .card-dark h4, .card-dark h5 {
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-dark);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr:hover {
    background: var(--bg-light);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-strong);
}

.pricing-card.featured {
    border: 2px solid var(--accent-gold);
}

.pricing-card.featured::before {
    content: 'Recommended';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.pricing-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.pricing-header h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.pricing-header .price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Accordion */
.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.accordion-header svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 0 1.5rem 1.5rem;
    max-height: 2000px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.tag-outline {
    background: transparent;
    border: 1px solid var(--border-light);
}

/* Lists */
.check-list {
    list-style: none;
}

.check-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
    margin: 3rem 0;
}

/* Quote Block */
.quote-block {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.quote-block p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.quote-block .author {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.page-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 4rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
    }
    .page-header, .page-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .two-column {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header, .page-content {
        padding: 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .login-box {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .page-header {
        background: var(--primary-dark) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

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

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 2rem;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin: 0 auto 1rem;
}

.process-step h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ROI Calculator Section */
.roi-highlight {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.roi-highlight .roi-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.roi-highlight .roi-label {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

/* Integration Diagram */
.integration-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.hub-center {
    width: 140px;
    height: 140px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    box-shadow: var(--shadow-strong);
}

.hub-spoke {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spoke-item {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
}
