/* AlloGraph - Clean Medical Style */
/* Font: Roboto Medium */
/* Colors: #F2E9DF (cream), #021F59 (navy), #77ACF2 (light blue), #F21905 (red), #F2A594 (coral) */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

/* Global styles - Clean white background */
html {
    min-width: 1280px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #021F59;
    min-width: 1280px;
    overflow-x: auto;
}

/* Header container - blends with white background */
.header-container {
    background: #ffffff;
    border: none;
    box-shadow: none;
    border-radius: 0;
    color: #021F59;
}

/* Main title - hidden since logo includes text */
.main-title {
    display: none;
}

/* Navigation buttons - Navy pills */
.nav-button {
    transition: all 0.2s ease;
    border-radius: 8px !important;
    font-weight: 500;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    padding: 8px 16px;
}

.nav-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Primary button - Red (Home/Active) */
.btn-primary {
    background-color: #F21905 !important;
    border-color: #F21905 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #d61704 !important;
    border-color: #d61704 !important;
    box-shadow: 0 4px 12px rgba(242, 25, 5, 0.4);
}

/* Secondary button - Navy with white text */
.btn-secondary {
    background-color: #021F59 !important;
    border-color: #021F59 !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: #032a7a !important;
    border-color: #032a7a !important;
    box-shadow: 0 4px 12px rgba(2, 31, 89, 0.4);
}

.btn-secondary:disabled {
    background-color: #4a5a7a !important;
    border-color: #4a5a7a !important;
    color: #a0a8b8 !important;
    opacity: 0.7;
}

/* Danger/Delete button - Red outline */
.btn-danger {
    background-color: #ffffff !important;
    border-color: #F21905 !important;
    color: #F21905 !important;
}

.btn-danger:hover {
    background-color: #F21905 !important;
    border-color: #F21905 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    color: #F21905 !important;
    border-color: #F21905 !important;
    background-color: transparent !important;
}

.btn-outline-danger:hover {
    background-color: #F21905 !important;
    color: #ffffff !important;
}

/* Sidebar card - Navy header, white body with navy border */
.sidebar-card {
    border: 2px solid #021F59;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background-color: #ffffff !important;
    overflow: hidden;
}

.sidebar-card .card-header {
    background: #021F59 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #021F59;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 16px;
}

.sidebar-card .card-body {
    background-color: #ffffff !important;
    color: #021F59 !important;
}

/* Alerts inside sidebar - override bootstrap colors */
.sidebar-card .alert {
    background-color: #e8f4fd !important;
    border: 1px solid #77ACF2 !important;
    color: #021F59 !important;
}

.sidebar-card .alert-success {
    background-color: #e8f5e8 !important;
    border: 1px solid #77ACF2 !important;
    color: #021F59 !important;
}

/* Main content cards - Navy header, white body with navy border */
.card {
    border: 2px solid #021F59;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    background-color: #ffffff;
    color: #021F59;
    overflow: hidden;
}

.card-header {
    background: #021F59;
    color: #ffffff;
    border-bottom: 2px solid #021F59;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    padding: 16px;
}

.card-body {
    background-color: #ffffff;
    color: #021F59;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #021F59;
    color: #021F59;
    font-family: 'Roboto', sans-serif;
}

/* Purge button styling */
.purge-button-navbar {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid #F21905 !important;
}

.purge-button-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 25, 5, 0.3);
}

/* App logo hover effect */
.app-logo {
    transition: transform 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.02);
}

/* Survey toast - White with navy border */
.survey-toast {
    border: 2px solid #021F59 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    max-width: 380px !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Survey toast header - Navy */
.survey-toast .toast-header {
    background: #021F59 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 18px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Survey toast body - White background */
.survey-toast .toast-body {
    background-color: #ffffff !important;
    padding: 18px !important;
    color: #021F59 !important;
}

/* Survey toast buttons */
.survey-toast .btn-primary {
    background-color: #F21905 !important;
    border-color: #F21905 !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    font-family: 'Roboto', sans-serif !important;
}

.survey-toast .btn-primary:hover {
    background-color: #d61704 !important;
    border-color: #d61704 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(242, 25, 5, 0.3) !important;
}

.survey-toast .btn-secondary {
    background-color: #021F59 !important;
    border-color: #021F59 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    font-family: 'Roboto', sans-serif !important;
}

.survey-toast .btn-secondary:hover {
    background-color: #032a7a !important;
    border-color: #032a7a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(2, 31, 89, 0.3) !important;
}

/* Close button in toast */
.survey-toast .btn-close {
    filter: invert(1) !important;
    opacity: 0.9 !important;
}

.survey-toast .btn-close:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Survey toast animation */
.survey-toast {
    animation: slideInRight 0.4s ease-out !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge for survey duration */
.survey-duration-badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    font-family: 'Roboto', sans-serif !important;
}

/* Form elements styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #021F59;
    font-family: 'Roboto', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: #F21905;
    box-shadow: 0 0 0 0.2rem rgba(242, 25, 5, 0.15);
}

/* Checklist labels - ensure dark text on white sidebar background */
.sidebar-card .form-check-label,
.sidebar-card label,
.sidebar-card .form-check {
    color: #021F59 !important;
}

/* Links */
a {
    color: #021F59;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #F21905;
}

/* Upload component hover effect */
#upload-data:hover {
    border-color: #F21905 !important;
    background-color: #fff5f5 !important;
}

/* ============================================
   HOMEPAGE - PRE-DATA STATE STYLES
   ============================================ */

/* Feature cards - override global card styles */
.feature-card {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

.feature-card .card-body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Test data card hover effect */
#test-data-card:hover {
    background-color: #f0fff0 !important;
    border-color: #28a745 !important;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15) !important;
}

/* Upload zone hover effect */
#upload-zone-hover:hover {
    border-color: #F21905 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 4px 20px rgba(242, 25, 5, 0.1);
}

/* Tutorial collapse button hover effect */
#tutorial-collapse-btn:hover {
    background-color: #e9ecef !important;
    border-color: #0D3182 !important;
}

#tutorial-collapse-btn:active {
    background-color: #dee2e6 !important;
}

/* Upload section card - navy background */
.upload-section-card {
    background-color: #021F59 !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(13, 49, 130, 0.12) !important;
}

.upload-section-card .card-body {
    background-color: #021F59 !important;
}

/* Dropdown in card header - ensure text is readable */
.card-header .Select-control {
    background-color: #ffffff !important;
}

.card-header .Select-value-label,
.card-header .Select-placeholder {
    color: #021F59 !important;
}

.card-header .VirtualizedSelectOption {
    color: #021F59 !important;
    background-color: #ffffff !important;
}

.card-header .VirtualizedSelectOption:hover {
    background-color: #f0f4f8 !important;
    color: #021F59 !important;
}

.card-header .VirtualizedSelectFocusedOption {
    background-color: #e8f4ff !important;
    color: #021F59 !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #021F59;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F21905;
}
