/* InstaWell Dash App Styles */
/* Dash auto-loads all files in assets/ */

body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h4,
.card-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Forms */
.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Upload zones */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 18px;
    text-align: center;
    color: #6c757d;
    background: rgba(248, 249, 250, 0.85);
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone:focus-within {
    border-color: #0d6efd;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

.upload-zone.loaded {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.08);
}

.upload-filename {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.upload-help {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Dash DataTable styling */
.dash-table-container .dash-table {
    font-size: 0.9rem;
}

.dash-spreadsheet-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

.dash-spreadsheet td,
.dash-spreadsheet th {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Designer grid specific */
#designer-plate-grid {
    font-family: monospace;
}

/* Well filtering checklist */
.well-filter-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
}

.well-filter-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0.5rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Loading states */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

/* Figure containers */
.figure-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Alerts and notifications */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Button groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 0.5rem 0 0 0.5rem;
}

.btn-group .btn:last-child {
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Small text helpers */
.text-muted {
    color: #6c757d !important;
}

.small {
    font-size: 0.875rem;
}

/* Monospace for well names */
.font-monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Navbar */
.navbar {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .card-header h4,
    .card-header h5 {
        font-size: 1rem;
    }
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

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