/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0c2461, #1e3799);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    padding: 25px 40px;
    border-bottom: 4px solid #2980b9;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #2ecc71;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-left: 55px;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    padding: 30px;
    gap: 30px;
    min-height: 600px;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
}

/* Panels */
.left-panel, .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.left-panel {
    min-width: 500px;
}

/* Sections Common Styles */
.file-section,
.run-type-section,
.action-section,
.ml-section,
.status-section,
.log-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.section-title i {
    color: #3498db;
    font-size: 1.4rem;
}

/* File Controls */
.file-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.3s;
}

.file-display i {
    font-size: 1.5rem;
    color: #7f8c8d;
}

.file-name {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.95rem;
    color: #555;
}

.button-group {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-select {
    background-color: #3498db;
    color: white;
    flex: 1;
}

.btn-select:hover {
    background-color: #2980b9;
}

.btn-load {
    background-color: #2ecc71;
    color: white;
    flex: 1;
}

.btn-load:hover {
    background-color: #27ae60;
}

.btn-primary {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    padding: 18px 30px;
    font-size: 1.2rem;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #2c3e50);
}

.btn-secondary {
    background-color: #9b59b6;
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #8e44ad;
}

.btn-large {
    font-size: 1.3rem;
    padding: 20px;
}

/* Run Type Buttons */
.run-type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.run-type-btn {
    padding: 15px;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.run-type-btn:hover {
    background-color: #d5dbdb;
    border-color: #3498db;
}

.run-type-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.run-type-value {
    margin-left: auto;
    font-family: 'Source Code Pro', monospace;
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Action Section */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

/* ML Controls */
.ml-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.btn-ml {
    background-color: #34495e;
    color: white;
    padding: 15px;
}

.btn-ml:hover {
    background-color: #2c3e50;
}

/* Status Section */
.status-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-indicator.ready {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 2px solid #2ecc71;
}

.status-indicator.processing {
    background-color: #d6eaf8;
    color: #2980b9;
    border: 2px solid #3498db;
}

.status-indicator.warning {
    background-color: #fef9e7;
    color: #f39c12;
    border: 2px solid #f1c40f;
}

.status-indicator.error {
    background-color: #fdedec;
    color: #e74c3c;
    border: 2px solid #c0392b;
}

.progress-container {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.progress-bar {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #2ecc71, #3498db);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: center;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    color: #2c3e50;
}

/* Log Console */
.log-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.log-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-icon:hover {
    color: #e74c3c;
    background-color: #fdedec;
}

.log-console {
    flex: 1;
    background-color: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    overflow-y: auto;
    max-height: 300px;
    border: 1px solid #34495e;
}

.log-entry {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.log-time {
    color: #3498db;
    font-weight: 600;
}

.log-info {
    color: #ecf0f1;
}

.log-success {
    color: #2ecc71;
}

.log-warning {
    color: #f1c40f;
}

.log-error {
    color: #e74c3c;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 40px;
    border-top: 4px solid #3498db;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3498db;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .left-panel {
        min-width: unset;
    }
    
    .run-type-buttons {
        grid-template-columns: 1fr;
    }
    
    .ml-controls {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.test-set {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Cria duas colunas de larguras iguais */
    gap: 10px; /* Adiciona um espaço entre os botões */
}