/* css/exercicios.css - Adições para o Dashboard Expandido */

.exercicios-container {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filters select,
.filters button {
    height: 38px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 250px);
    /* Further reduced height to fit larger stats */
    min-height: 400px;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.exercises-column {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.column-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-header input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.exercises-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.exercise-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-item.not-official {
    background-color: #fff3cd;
    /* Yellow warning */
    border-left: 4px solid #ffc107;
    margin-bottom: 6px;
}

.exercise-item.official-match {
    /* Optional: highlight matches */
}

.badge {
    background-color: #47ADB2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #47ADB2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.exercise-details {
    font-size: 0.85rem;
    color: #666;
}

/* Edit Button Styles */
.btn-edit-exercise {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    transition: color 0.2s;
}

.btn-edit-exercise:hover {
    color: #47ADB2;
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.stat-card {
    background-color: var(--header-background);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #444;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Overview Specifics */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.overview-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 15px 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #47ADB2;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.conformity-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.stat-list li:last-child {
    border-bottom: none;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: #28a745;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Modal form adjustments */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #47ADB2;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.text-muted {
    color: #6c757d;
    font-size: 0.85em;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #47ADB2;
    color: white;
}

.btn-primary:hover {
    background-color: #3a8e93;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Suggestions Styles */
.suggestions-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid #bbdefb;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background-color: #bbdefb;
    border-color: #90caf9;
}

.suggestion-tag i {
    margin-right: 4px;
    font-size: 0.8em;
}

/* CSS for Duplicate Warning in Official List */
.duplicate-warning-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.exercise-item.duplicate {
    background-color: #fff8f8;
    border-left: 4px solid #dc3545;
}

