/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

header h1 {
    color: #0062cc;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 2.5rem;
}

header p {
    color: #6c757d;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

footer .disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Search container styles */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.search-container label {
    font-weight: 500;
    color: #495057;
}

.select-wrapper {
    position: relative;
    min-width: 350px;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: #6c757d;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

button {
    padding: 12px 25px;
    background-color: #0062cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Loading spinner */
#loading {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#loading p {
    font-size: 1.2rem;
    color: #6c757d;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0062cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Data container styles */
#data-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    color: #0062cc;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.6rem;
    font-weight: 600;
}

#msa-header {
    text-align: center;
    margin-bottom: 40px;
}

#msa-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 5px;
}

#msa-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-container {
    height: 300px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.data-table {
    padding: 15px;
}

.data-table h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
}

.data-source {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #adb5bd;
    text-align: right;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #495057;
}

/* Inventory table styles */
.inventory-table td:first-child {
    width: 65%;
}

.inventory-table tr.indent td:first-child {
    padding-left: 30px;
    color: #6c757d;
}

/* Utility styles */
.hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .select-wrapper {
        min-width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #msa-title {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    table th, table td {
        padding: 10px;
        font-size: 0.9rem;
    }
} 