/* TeraViewer Studio - Light Premium Theme
   SAFE: No position, z-index, transform, or backdrop-filter overrides.
   Only visual properties: colors, fonts, backgrounds, borders, shadows. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bs-primary: #4f46e5 !important;
    --bs-primary-rgb: 79, 70, 229 !important;
    --bs-body-bg: #f8fafc !important;
    --bs-body-color: #334155 !important;
    --bs-heading-color: #0f172a !important;
    --bs-link-color: #4338ca !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.06), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.06), transparent 30%) !important;
    background-attachment: fixed !important;
    color: #334155 !important;
}

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #4f46e5 !important;
}

.logo {
    height: 100px !important;
    /* Increased for better visibility */
    width: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
}

.small-logo {
    height: 60px !important;
    /* Increased for better visibility */
    width: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
}

.logo-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ========== HERO ========== */
.wide-white {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#homepage-hero h1 {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

#homepage-hero p {
    font-size: 1.2rem !important;
    color: #64748b !important;
}

/* HIDE Learn More link */
#homepage-hero a.text-link {
    display: none !important;
}

/* ========== CARDS ========== */
.card,
.homepage-feature-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    color: #334155 !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.card:hover,
.homepage-feature-card:hover {
    border-color: rgba(79, 70, 229, 0.15) !important;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08) !important;
}

.card-body {
    padding: 2rem !important;
}

.card-title {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.card-text {
    color: #64748b !important;
}

/* ========== MODALS ========== */
.modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    color: #334155 !important;
}

/* ========== DROPDOWNS (safe, no position overrides) ========== */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    color: #334155 !important;
}

.dropdown-item {
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #4f46e5 !important;
}

/* ========== SECTION HEADINGS ========== */
h4.text-muted.text-uppercase {
    text-align: center !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: box-shadow 0.2s ease !important;
}

.btn-primary,
.btn-brand {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-brand:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
}

.bg-light {
    background-color: transparent !important;
}

/* ========== ICONS ========== */
.hi-s {
    color: #4f46e5 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* ========== TABLES ========== */
.table {
    color: #334155 !important;
}

.table td,
.table th {
    border-color: #f1f5f9 !important;
    background-color: #ffffff !important;
    color: #334155 !important;
}

.table th {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}