/* GestSeg Clinic - Main Stylesheet */

:root {
    /* Color Palette */
    --primary-color: #114b2b;
    --primary-hover: #0a351d;
    --secondary-color: #f4f8f5;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8faf9;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.text-dark { color: var(--text-dark) !important; }

.font-serif { font-family: var(--font-serif); }
.fs-sm { font-size: 0.875rem; }
.letter-spacing-1 { letter-spacing: 0.5px; }
.line-height-tight { line-height: 1.1; }
.line-height-md { line-height: 1.6; }

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 75, 43, 0.2);
}

.btn-outline-dark {
    border-color: #e5e5e5;
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Navbar */
.navbar-brand .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--bg-light) 0%, var(--bg-light) 50%, transparent 50%);
    min-height: 700px;
    padding-bottom: 120px; /* Space for the overlapping login box */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80'); /* Professional Laboratory Background */
    background-size: cover;
    background-position: center left;
    z-index: 0;
}

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

@media (max-width: 991.98px) {
    .hero-section {
        background: var(--bg-light);
        min-height: auto;
        padding-bottom: 100px;
    }
    .hero-bg-image {
        display: none;
    }
}

/* Login Box (Overlapping) */
.z-index-1 {
    z-index: 10;
}

.login-box {
    border: 1px solid rgba(0,0,0,0.05);
}

.login-input {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.login-input:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(17, 75, 43, 0.1);
}

.login-input .form-control {
    border: none;
    background: transparent;
}

.login-input .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.login-input .input-group-text {
    border: none;
    background: transparent;
}

/* Features */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(17, 75, 43, 0.2) !important;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Footer */
.footer-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    padding-left: 4px;
}

.footer-bottom-link {
    transition: opacity 0.2s ease;
}

.footer-bottom-link:hover {
    opacity: 1;
    color: #ffffff !important;
}

/* Global Tooltip Styles (Solid Black Background) */
:root {
    --bs-tooltip-bg: #000000 !important;
    --bs-tooltip-color: #ffffff !important;
    --bs-tooltip-opacity: 1 !important;
}

.tooltip {
    opacity: 1 !important;
}

.tooltip-inner, .tooltip .tooltip-inner {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35) !important;
    opacity: 1 !important;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before { border-top-color: #000000 !important; }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before { border-bottom-color: #000000 !important; }
.tooltip.bs-tooltip-start .tooltip-arrow::before, .tooltip.bs-tooltip-left .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before { border-left-color: #000000 !important; }
.tooltip.bs-tooltip-end .tooltip-arrow::before, .tooltip.bs-tooltip-right .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before { border-right-color: #000000 !important; }

/* Global Badges Contrast & Legibility */
.badge {
    padding: 0.45em 0.8em !important;
    font-weight: 600 !important;
    border-radius: 50rem !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.badge.bg-primary { background-color: #0d6efd !important; color: #ffffff !important; }
.badge.bg-secondary { background-color: #495057 !important; color: #ffffff !important; }
.badge.bg-success { background-color: #198754 !important; color: #ffffff !important; }
.badge.bg-danger { background-color: #dc3545 !important; color: #ffffff !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #212529 !important; }
.badge.bg-info { background-color: #0dcaf0 !important; color: #212529 !important; }
.badge.bg-light { background-color: #e9ecef !important; color: #212529 !important; border: 1px solid #ced4da !important; }
.badge.bg-dark { background-color: #212529 !important; color: #ffffff !important; }

