/* Gym Assessment Tracker Styles */

.assessment-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.assessment-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.assessment-table th {
    padding: 16px 12px;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.assessment-table th:last-child {
    border-right: none;
}

.category-col {
    min-width: 150px;
    max-width: 150px;
    font-weight: 600;
}

.exercise-col {
    min-width: 200px;
    flex: 1;
}

.goal-col {
    min-width: 140px;
    text-align: center;
}

.assessment-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.assessment-table tbody tr:hover {
    background-color: #f9f9f9;
}

.assessment-table tbody tr.category-header {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.assessment-table tbody tr.category-header:hover {
    background-color: #efefef;
}

.assessment-table td {
    padding: 14px 12px;
    border-right: 1px solid #e0e0e0;
}

.assessment-table td:last-child {
    border-right: none;
}

.category-cell {
    font-weight: 500;
    color: #667eea;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-cell {
    font-weight: 500;
    color: #333;
}

.goal-cell {
    text-align: center;
    font-weight: 600;
    color: #764ba2;
    background-color: #f9f3ff;
    border-radius: 4px;
    padding: 10px 8px;
}

.result-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s;
}

.result-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.result-input.success {
    border-color: #4caf50;
    background-color: #f1f8f4;
}

.result-input.warning {
    border-color: #ff9800;
    background-color: #fff3f0;
}

.result-col-header {
    background-color: #f0f4ff;
    color: #667eea;
    font-weight: 600;
    position: relative;
    min-width: 130px;
}

.result-col-header .col-index {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.result-col-header .delete-col {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.result-col-header .delete-col:hover {
    background: #ee5a5a;
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

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

/* Responsive */
@media (max-width: 768px) {
    .assessment-table {
        font-size: 12px;
    }

    .assessment-table th,
    .assessment-table td {
        padding: 10px 8px;
    }

    .category-col {
        min-width: 100px;
        max-width: 100px;
    }

    .exercise-col {
        min-width: 150px;
    }

    .goal-col {
        min-width: 100px;
    }

    .result-col-header {
        min-width: 100px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Empty state */
.empty-message {
    padding: 40px;
    text-align: center;
    color: #999;
}
