﻿/* =========================================
   E-Social Clinic - Unified Dark Tech Theme
   File Path: wwwroot/css/clinic-styles.css
   ========================================= */

/* --- 1. Environment Watermark (Testing/Live) --- */
.environment-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.12;
}

.watermark-testing {
    color: #ff4d4d;
}

.watermark-live {
    color: #20c997;
}

/* --- 2. Body & Global Background --- */
body {
    background-color: #0B0F19;    
    background-image: linear-gradient(rgba(11, 15, 25, 0.88), rgba(11, 15, 25, 0.95)), url('../images/bg-tech.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 3. Global Text & Color Overrides --- */
.text-dark {
    color: #ffffff !important;
}

.text-muted {
    color: #a1a1aa !important;
}

/* --- 4. Navbar & Footer Styling --- */
.tech-navbar, .tech-footer {
    background-color: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tech-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: none !important;
    margin-top: auto;
}

    .tech-navbar .nav-link, .tech-footer a {
        color: #d1d5db !important;
        transition: color 0.3s ease;
    }

        .tech-navbar .nav-link:hover, .tech-footer a:hover {
            color: #3b82f6 !important;
        }

/* --- 5. Global Card & Glassmorphism Styling --- */
.card, .glass-card {
    background: rgba(18, 22, 31, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

    .card .bg-light, .bg-light {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #e5e7eb !important;
    }

    .card strong {
        color: #ffffff !important;
    }

/* --- 6. Forms & Input Fields --- */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

    .form-control:focus, .form-select:focus {
        background-color: rgba(255, 255, 255, 0.12) !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
        color: #ffffff !important;
    }

    .form-control::placeholder {
        color: #a1a1aa !important;
    }

    /* Ensure dropdown options remain legible on dark backgrounds */
    .form-select option {
        background-color: #12161f !important;
        color: #ffffff !important;
    }

.input-group-text {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #60a5fa !important;
}

/* --- 7. AI Report Markdown Container --- */
.markdown-container h1, .markdown-container h2 {
    color: #60a5fa !important;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    margin-top: 30px;
}

.markdown-container h3 {
    color: #f3f4f6 !important;
    font-weight: 600;
    margin-top: 25px;
}

.markdown-container p, .markdown-container ul, .markdown-container ol {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e5e7eb !important;
}

.markdown-container strong {
    color: #ffffff !important;
}

/* --- 8. Tweet Cards & KPI Stats --- */
.tweet-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 15px;
    background: rgba(18, 22, 31, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

    .tweet-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6) !important;
    }

.stat-card {
    border-radius: 15px;
    border-left: 5px solid #3b82f6 !important;
    background: rgba(18, 22, 31, 0.75) !important;
}

.badge-media {
    font-size: 0.75rem;
}
