body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    padding: 2rem;
}

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.statistics-box {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    overflow-y: auto;
}

.statistics-box h6 {
    color: #34495e;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.statistics-box p {
    margin-bottom: 0.75rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.statistics-box .value {
    color: #2c3e50;
    font-weight: 500;
    float: right;
}

.statistics-box hr {
    margin: 1rem 0;
    opacity: 0.1;
}

/* Make the ANOVA results sticky */
.sticky-top {
    position: sticky;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Adjust chart heights for better layout */
#scoreChart {
    max-height: 400px;
}

#boxPlotChart, #histogramChart {
    max-height: 300px;
}

/* Ensure the statistics boxes don't get too wide on larger screens */
@media (min-width: 992px) {
    .col-lg-4 .card {
        max-width: 100%;
    }
    
    .statistics-box {
        max-height: none;
    }
}

header h1 {
    color: #2c3e50;
    font-weight: 700;
}

header .lead {
    color: #7f8c8d;
}

#dataInput {
    font-family: monospace;
    min-height: 200px;
}

.strategy-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

canvas {
    max-height: 500px;
}

.alert {
    display: none;
    margin-top: 1rem;
}

/* Grid Input Styles */
.grid-input-container {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.removal-mode-indicator {
    position: absolute;
    top: -2.5rem;
    left: 0;
    right: 0;
    background-color: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.removal-mode-indicator i {
    font-size: 1.1rem;
}

.grid-wrapper {
    position: relative;
    max-height: 400px;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.grid-input {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 500px;
    margin-bottom: 0;
}

.grid-input thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-input th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.grid-input th.remove-col-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 11;
    background-color: #f8f9fa;
}

.grid-input td.remove-row-cell {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #fff;
}

.grid-input th, .grid-input td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    position: relative;
    background-color: #fff;
}

.grid-input tbody tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.grid-input tbody tr:nth-child(even) td.remove-row-cell {
    background-color: #f8f9fa;
}

.grid-input .header-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.grid-input .data-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.grid-input .header-cell:hover,
.grid-input .data-row:hover {
    background-color: #e9ecef;
}

.grid-input .header-cell.removal-mode,
.grid-input .data-row.removal-mode {
    background-color: #fff3cd;
}

.grid-input .header-cell.removal-mode:hover,
.grid-input .data-row.removal-mode:hover {
    background-color: #ffeeba;
}

.grid-input input {
    width: 100%;
    border: none;
    padding: 0.25rem;
    background: transparent;
}

.grid-input input:focus {
    outline: 2px solid #0d6efd;
    border-radius: 2px;
}

/* Dropdown menu styles */
.dropdown-menu {
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dropdown-item i {
    font-size: 1rem;
    color: #6c757d;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:hover i {
    color: #0d6efd;
}

/* Button Theme Styles */
.btn {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Primary Action Button */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Secondary Action Button */
.btn-outline-primary {
    color: #4b5563;
    border-color: #e5e7eb;
    background-color: white;
}

.btn-outline-primary:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Danger Action Button */
.btn-outline-danger {
    color: #dc2626;
    border-color: #fecaca;
    background-color: white;
}

.btn-outline-danger:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

/* Warning Action Button */
.btn-outline-warning {
    color: #d97706;
    border-color: #fef3c7;
    background-color: white;
}

.btn-outline-warning:hover {
    background-color: #fffbeb;
    border-color: #fef3c7;
    color: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
}

/* Button Icons */
.btn i {
    font-size: 1rem;
    line-height: 1;
}

/* Grid Controls Layout */
.grid-controls {
    margin-bottom: 1rem;
}

.grid-controls-main {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.grid-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.grid-add-buttons {
    display: flex;
    justify-content: center;
}

.add-column-btn {
    white-space: nowrap;
}

.add-row-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

/* Analyze Button Specific Styles */
#analyzeBtn {
    font-size: 1rem;
    font-weight: 600;
}

#analyzeBtn i {
    font-size: 1.25rem;
}

/* Add styles for analysis content visibility */
#analysisContent {
    display: none;
}

#analysisContent.visible {
    display: block;
} 

.column-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-remove-column, .btn-remove-row {
    background: none;
    border: none;
    color: #dc3545;
    padding: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-remove-column:hover, .btn-remove-row:hover {
    opacity: 1;
}

.remove-col-header {
    width: 30px;
}

.remove-row-cell {
    width: 30px;
    text-align: center;
}

/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    background-color: #4b5563;
    color: white;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.file-upload-label:hover {
    background-color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-upload-label i {
    font-size: 1rem;
    line-height: 1;
}

/* Paste Indicator Styles */
.paste-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

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

/* Header Logo Styles */
.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 0.5rem;
}

.header-logo p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Inline Header Styles */
.header-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.header-inline img {
    max-width: 90px;
    height: 70px;
    object-fit: contain;
}
.header-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header-titles h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.header-titles .subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.header-titles .faculty-info {
    font-size: 0.95rem;
    color: #6c757d;
}
@media (max-width: 600px) {
    .header-inline {
        flex-direction: column;
        gap: 1rem;
    }
    .header-titles {
        align-items: center;
        text-align: center;
    }
}

.grid-input .header-input {
    width: 100%;
    border: 1px solid #ced4da;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.grid-input .header-input:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.grid-input .header-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background: #ffffff;
}

.grid-input .column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
}