/* === Import Google Font === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* === Global Styles === */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;        /* Disables text selection */
    cursor: default !important; /* Prevents text cursor */
}

/* === Header Styling === */
header, .app-header {
    background-color: #154c79;
    color: #f0f0f0;  /* off-white */
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.8rem;
}

/* === Typography === */
.intro-box {
    font-size: 16px;
    line-height: 1.6;
    padding: 20px 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 90%;
    margin: 20px auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tab-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #154c79;
    margin-top: 0;
    margin-bottom: 8px;
}

.tab-subtitle {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.tab-text {
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 10px auto 0;
    max-width: 450px;
    text-align: center;
}

/* === Buttons === */
button, 
.upload-btn,
#clear-data-button {
    background-color: #1e81b0;
    color: #f0f0f0;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover,
.upload-btn:hover,
#clear-data-button:hover {
    background-color: #154c79;
}

.upload-tab-content button {
    height: 38px; /* roughly matches dropdown height */
    margin-left: 12px;
}

/* === Tabs Styling === */
#left-tabs {
    margin: 20px 0 20px 15px;
    padding-bottom: 10px;
    /* border-bottom: 1px solid #ccc;  <-- commented out */
}

#left-tabs .tab {
    padding: 10px 15px !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-top: 3px solid transparent; /* reserve space for active tab indicator */
}

#left-tabs .tab--selected {
    border-top: 2px solid #154c79 !important; /* active tab underline color */
    color: #154c79 !important; /* active tab text color */
    font-weight: 700;
}

.right-column-wrapper {
    max-width: 700px;      /* limit max width */
    margin-left: auto;     /* center horizontally */
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px;       /* some horizontal padding */
}

/* === Dropdown Styling === */
#builtin-dropdown {
    max-width: 300px;
    min-width: 200px;
    width: auto !important;
}

.Select-control, 
.Select {
    width: auto !important;
    min-width: 200px;
    min-width: 100% !important; /* redundant but safe */
}

/* Margin fix for dropdown inside upload tab */
.upload-tab-content > div > .Select-control {
    margin-left: 15px;
}

.dash-table-container, #graph {
    max-width: 900px;  /* or whatever fits */
    margin: 0 auto 20px auto;  /* center horizontally, margin below */
    box-sizing: border-box;
}

/* Upload controls container */
.upload-controls {
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}

.centered-upload,
.centered-dropdown {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.centered-dropdown {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* === Layout Containers === */
#left-tab-content {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    padding: 10px 15px;
}

#clear-button-container {
    text-align: center;
    margin-top: 15px;
}

/* === Clear Data Button Styling === */
#clear-data-button {
    background-color: #1e81b0;
    color: #f0f0f0;
    border-radius: 4px;
}

/* === Table Container === */
.dash-table-container {
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .intro-box {
        font-size: 15px;
        padding: 15px;
    }
}

