/* SpiritGrid - Professional SaaS Styling */

:root {
    --primary-color: #003366;
    --secondary-color: #17cae6;
    --accent-color: #00CC99;
    --danger-color: #CC3300;
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --muted-color: #2c3e50;
    --dark-blue: #182b38;
    --cream: #faf6e4;
    --gold: #fab549;
    --green: #77b800;
    --red: #b82e12;
    --blue-gray: #799aa3;

    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(24, 43, 56, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

/* Hero Section specific text styling for better visibility */
.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Problems Section */
.problems-section {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.problems-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid #dc3545;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.problem-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

.problem-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.problem-item:hover .problem-icon {
    background: rgba(0, 51, 102, 0.1);
}

.problem-icon i {
    font-size: 1.5rem;
}

.problem-content h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.problem-content p {
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0;
}

/* Responsive design for problems section */
@media (max-width: 768px) {
    .problems-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-item {
        padding: 1.5rem;
    }

    .problem-icon {
        width: 40px;
        height: 40px;
    }

    .problem-icon i {
        font-size: 1.25rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.badge-container .badge {
    font-size: 0.9rem;
    border-radius: 50px;
    background: var(--gradient-accent);
    border: none;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem 0;
}

/* Hero Section Stats - Improved visibility */
.hero-stats .stat-item small {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 0.9;
}

.hero-stats h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.dashboard-preview {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.preview-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.preview-dots span:nth-child(1) { background: #dc3545; }
.preview-dots span:nth-child(2) { background: #ffc107; }
.preview-dots span:nth-child(3) { background: #28a745; }

.preview-title {
    font-weight: 600;
    color: var(--muted-color);
}

.preview-content {
    padding: 2rem;
}

.chart-container {
    height: 200px;
    margin-bottom: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metric-card i {
    font-size: 1.25rem;
}

/* Improved visibility for metric cards */
.metric-card span {
    color: var(--dark-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Feature Cards */
.feature-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--light-color);
}

.feature-metrics {
    margin-top: auto;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: var(--border-radius);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--muted-color);
    margin: 0;
}

/* Process Section */
.process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.process-step {
    text-align: center;
    position: relative;
}

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

.step-content h4 {
    margin-bottom: 1rem;
}

/* Demo Form */
.demo-form-container {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.survey-questions .question-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.rating-scale {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    gap: 0.5rem;
}

.rating-scale input[type="radio"] {
    display: none;
}

.rating-scale label {
    width: 50px;
    height: 50px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.rating-scale input[type="radio"]:checked + label {
    background: var(--gradient-primary);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.rating-scale label:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 102, 204, 0.1);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted-color);
}

/* Pricing Section */
.pricing-section {
    background: var(--cream);
}

.pricing-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.pricing-header {
    margin-bottom: 2rem;
}

.price-display {
    margin: 1.5rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

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

.period {
    font-size: 1.125rem;
    color: var(--muted-color);
}

.pricing-features ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.pricing-calculator {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

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

.price-breakdown {
    font-size: 1.25rem;
}

.trial-badge {
    background: var(--gradient-accent);
    color: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

/* Contact Section */
.contact-section {
    background: var(--gradient-hero);
    color: var(--light-color);
}

/* Contact Section specific text styling for better visibility */
.contact-section .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Support Team Section */
.support-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.supporter-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 3rem;
}

.supporter-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.supporter-image {
    flex-shrink: 0;
}

.supporter-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.supporter-info {
    flex: 1;
}

.supporter-title h4 {
    color: var(--dark-color);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.supporter-title h5 {
    font-weight: 600;
}

.supporter-description p {
    color: var(--muted-color);
    line-height: 1.7;
    font-size: 1rem;
}

.supporter-services {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.service-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-4px);
}

.service-item i {
    font-size: 2rem;
    display: block;
}

.service-item h6 {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* Responsive design for supporter section */
@media (max-width: 768px) {
    .supporter-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .supporter-card {
        padding: 2rem;
    }

    .supporter-photo {
        width: 100px;
        height: 100px;
    }

    .company-header {
        justify-content: center;
    }

    .company-logo {
        height: 35px;
    }
}

.contact-form-container {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
    color: var(--dark-color);
    font-weight: 600;
}

.contact-form .form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--light-color);
}

.footer h5, .footer h6 {
    color: var(--light-color);
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.footer .text-muted {
    color: #d1d5db !important;
    font-weight: 400;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--light-color);
}

/* Dashboard Styles */
.dashboard-body {
    background: #f8f9fa;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--light-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: var(--muted-color);
    padding: 1rem 2rem;
    border-radius: 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(0, 102, 204, 0.1);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
}

.user-role {
    font-size: 0.875rem;
    color: var(--muted-color);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.dashboard-header {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

/* KPI Cards */
.kpi-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

.kpi-icon.bg-primary { background: var(--gradient-primary); }
.kpi-icon.bg-success { background: linear-gradient(135deg, #28a745, #20c997); }
.kpi-icon.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.kpi-icon.bg-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.kpi-label {
    color: #374151 !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: #28a745;
}

.kpi-change.negative {
    color: #dc3545;
}

/* Chart Cards */
.chart-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.chart-controls select {
    width: auto;
}

.chart-body {
    padding: 2rem;
}

/* Action Cards */
.action-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.action-list {
    padding: 1rem 0;
}

.action-item {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover {
    background: #f8f9fa;
}

.action-content h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.action-meta {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Improved text visibility for dashboard and general use */
.text-muted {
    color: var(--muted-color) !important;
}

/* Improved visibility for small muted text */
small.text-muted {
    color: #374151 !important;
    font-weight: 400;
}

/* Action items improved visibility */
.action-item .text-muted {
    color: #374151 !important;
}

/* Activity Cards */
.activity-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.activity-list {
    padding: 1rem 0;
}

.activity-item {
    padding: 1rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
}

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

.activity-item:hover {
    background: #f8f9fa;
}

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

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
}

.activity-time {
    flex-shrink: 0;
}

/* Activity items improved visibility */
.activity-item .text-muted {
    color: #374151 !important;
}

/* Dashboard header muted text */
.dashboard-header .text-muted {
    color: #374151 !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .sidebar.show {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .hero-stats .row {
        text-align: center;
    }

    .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }

    /* Remove top margin that was causing spacing issues */
    .hero-section .min-vh-100 {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .feature-card {
        padding: 2rem;
        text-align: center;
    }

    .process-step {
        margin-bottom: 2rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .demo-form-container {
        padding: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .kpi-card {
        flex-direction: column;
        text-align: center;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .action-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .action-meta {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .rating-scale {
        gap: 0.25rem;
    }

    .rating-scale label {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

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

.shadow-hover {
    transition: var(--transition);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--muted-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding-top: 6rem !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

/* Mobile-specific adjustments */
@media (max-width: 991px) {
    .page-header {
        padding-top: 5rem !important;
    }

    .hero-section {
        padding-top: 5rem;
    }

    /* Adjust navbar height for mobile */
    .navbar {
        min-height: 70px;
    }

    /* Ensure proper spacing for collapsed navbar */
    .navbar-collapse {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding-top: 4.5rem !important;
    }

    .hero-section {
        padding-top: 4.5rem;
    }
}

/* Company Info Card */
.company-info-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--light-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

/* Content Styling for Legal Pages */
.privacy-content,
.terms-content {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.privacy-content h2,
.terms-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.privacy-content h4,
.terms-content h4 {
    color: var(--dark-color);
    margin-top: 1.5rem;
}

.privacy-content ul,
.terms-content ul {
    padding-left: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
    color: var(--muted-color);
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .company-info-card,
    .privacy-content,
    .terms-content {
        padding: 2rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item::before {
        left: -1.75rem;
    }
}

/* Contact Page Styles */
.contact-page-container {
    max-width: 100%;
}

.contact-form-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e9ecef;
}

.contact-page-form .form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-page-form .form-control,
.contact-page-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.contact-page-form .form-control:focus,
.contact-page-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-info-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--light-color);
}

.contact-info-icon i {
    font-size: 1.5rem;
}

.office-info-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
}

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

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

.faq-section .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.faq-section .accordion-button {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: var(--light-color);
}

.faq-section .accordion-button:not(.collapsed) {
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary-color);
}

.faq-section .accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Form validation styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-form-card {
        padding: 2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .office-info-card {
        padding: 2rem;
    }

    .map-placeholder {
        height: 120px;
        margin-top: 1rem;
    }
}

/* Authentication Pages Styles */
.auth-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 6rem;
    min-height: 100vh;
}

.auth-card {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e9ecef;
    max-width: 100%;
}

.auth-logo {
    font-size: 3rem;
}

.auth-header h2 {
    color: var(--dark-color);
}

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

.auth-form .form-control,
.auth-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.password-toggle:hover {
    color: var(--secondary-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: var(--transition);
    background: #dc3545;
}

.strength-fill.weak {
    width: 25%;
    background: #dc3545;
}

.strength-fill.fair {
    width: 50%;
    background: #ffc107;
}

.strength-fill.good {
    width: 75%;
    background: #28a745;
}

.strength-fill.strong {
    width: 100%;
    background: #198754;
}

/* Password Requirements */
.password-checklist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.password-checklist li {
    margin: 0.25rem 0;
    transition: var(--transition);
}

.password-checklist li.valid i {
    color: #28a745 !important;
}

.password-checklist li.valid i::before {
    content: '\f00c';
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: var(--light-color);
    padding: 0 1rem;
    color: var(--muted-color);
    font-size: 0.875rem;
}

/* Social Login */
.social-login .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.social-login .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Info Box */
.info-box {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.info-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-content {
    flex: 1;
}

.info-content h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-content ul {
    margin: 0;
    padding-left: 1rem;
}

/* Security Notice */
.security-notice {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.security-notice h6 {
    color: var(--dark-color);
}

.security-notice ul {
    margin: 0;
    padding-left: 1rem;
}

/* Verification Steps */
.verification-steps {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.verification-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.verification-list li:last-child {
    border-bottom: none;
}

.verification-list i {
    width: 1.5rem;
    margin-right: 0.5rem;
}

/* Success Actions */
.success-actions {
    margin-top: 1rem;
}

/* Auth Footer */
.auth-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Mobile Responsive for Auth Pages */
@media (max-width: 991px) {
    .auth-section {
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }

    .auth-logo {
        font-size: 2.5rem;
    }

    .password-toggle {
        right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding-top: 4.5rem;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .info-box,
    .security-notice,
    .verification-steps {
        padding: 1rem;
    }
}

/* Usage Flow Section - New Design */
.usage-flow-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.usage-flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.flow-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
}

.flow-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    z-index: 1;
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.step-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.step-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.step-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #f1f5f9;
    color: #475569;
    transform: translateX(5px);
}

/* Details Grid */
.flow-details {
    margin-top: 4rem;
}

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

.detail-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.detail-card h5 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .flow-timeline {
        flex-direction: column;
        gap: 3rem;
    }
    
    .flow-timeline::before {
        display: none;
    }
    
    .step-content {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .flow-timeline {
        gap: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-item {
        font-size: 0.9rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-card {
        padding: 2rem;
    }
    
    .detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .step-content {
        padding: 1.25rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-item {
        font-size: 0.85rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .detail-card h5 {
        font-size: 1.1rem;
    }
    
    .detail-card p {
        font-size: 0.9rem;
    }
}
