/*
 * Assessment Styles
 * Styles for GAP assessment workflow pages
 */

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* ========================================
   Progress Containers
   ======================================== */
.progress-container {
    margin: 1.5rem 0;
}

.progress-bar-wrapper {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-wrapper.mini {
    height: 8px;
    margin-bottom: 0;
}

.progress-bar {
    background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-label {
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.progress-stats .percentage {
    font-weight: 600;
    color: #0066cc;
}

/* ========================================
   Dimensions Grid
   ======================================== */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dimension-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dimension-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.dimension-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dimension-code {
    background: #0066cc;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dimension-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.dimension-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.dimension-progress {
    margin: 1.5rem 0;
}

.dimension-actions {
    display: flex;
    gap: 0.5rem;
}

.dimension-actions .btn {
    flex: 1;
    justify-content: center;
}

/* ========================================
   Categories List
   ======================================== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.category-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #212529;
}

.category-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.category-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.item-count {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.category-progress-section {
    min-width: 200px;
}

.category-action {
    min-width: 120px;
}

/* ========================================
   Assessment Items (Category Page)
   ======================================== */
.assessment-container {
    max-width: 1200px;
}

.assessment-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.assessment-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.assessment-item:hover {
    border-color: #dee2e6;
}

.item-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.item-number {
    background: #0066cc;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    line-height: 1.5;
}

.item-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: normal;
}

.item-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

/* ========================================
   Radio Button Groups
   ======================================== */
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #0066cc;
    background: #e7f3ff;
    color: #0066cc;
}

.radio-option:hover .radio-label {
    border-color: #adb5bd;
}

/* Status-specific colors */
.status-complete input[type="radio"]:checked + .radio-label {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.status-in-progress input[type="radio"]:checked + .radio-label {
    border-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.status-not-started input[type="radio"]:checked + .radio-label {
    border-color: #6c757d;
    background: #e9ecef;
    color: #495057;
}

.status-not-applicable input[type="radio"]:checked + .radio-label {
    border-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

/* Priority-specific colors */
.priority-critical input[type="radio"]:checked + .radio-label {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.priority-important input[type="radio"]:checked + .radio-label {
    border-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.priority-beneficial input[type="radio"]:checked + .radio-label {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

/* ========================================
   Item Notes
   ======================================== */
.item-notes {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.item-notes:focus {
    outline: none;
    border-color: #0066cc;
}

/* ========================================
   Save Indicator
   ======================================== */
.save-indicator {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(150%);
    }
    to {
        transform: translateX(0);
    }
}

/* ========================================
   Sticky Form Actions
   ======================================== */
.sticky-actions {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid #e9ecef;
    padding: 1.5rem;
    margin: 2rem -1.5rem -1.5rem -1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.action-group {
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   Info Boxes
   ======================================== */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin: 0.5rem 0;
}

.highlight-box {
    background: #e7f3ff;
    border: 2px solid #0066cc;
    border-radius: 12px;
}

.description-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

/* ========================================
   Instructions Grid
   ======================================== */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.instruction-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.instruction-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #212529;
}

.instruction-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* ========================================
   Navigation Buttons
   ======================================== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Gap Summary Cards
   ======================================== */
.gap-critical {
    border-left: 4px solid #dc3545;
}

.gap-important {
    border-left: 4px solid #ffc107;
}

.gap-beneficial {
    border-left: 4px solid #28a745;
}

.gap-total {
    border-left: 4px solid #0066cc;
}

.stat-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ========================================
   Dimension Score Display
   ======================================== */
.dimension-score {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.dimension-score .score-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dimension-score .score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.progress-detail {
    margin-top: 0.5rem;
    text-align: center;
}

/* ========================================
   Mobile Responsiveness
   ======================================== */
@media (max-width: 768px) {
    .dimensions-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-progress-section {
        min-width: unset;
    }

    .category-action {
        min-width: unset;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-label {
        width: 100%;
        justify-content: center;
    }

    .sticky-actions {
        flex-direction: column;
    }

    .action-group {
        width: 100%;
    }

    .action-group .btn {
        flex: 1;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .dimension-code {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .item-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ========================================
   Action Items Styles
   ======================================== */
.action-items-section {
    margin-bottom: 3rem;
}

.dimension-header {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e9ecef;
}

.action-items-list {
    display: grid;
    gap: 1.5rem;
}

.action-item-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.action-item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Border color based on priority */
.action-item-card.priority-critical {
    border-left: 4px solid #dc3545;
}

.action-item-card.priority-important {
    border-left: 4px solid #ffc107;
}

.action-item-card.priority-beneficial {
    border-left: 4px solid #28a745;
}

.action-item-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.priority-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.priority-critical {
    background: #dc3545;
    color: white;
}

.priority-badge.priority-important {
    background: #ffc107;
    color: #000;
}

.priority-badge.priority-beneficial {
    background: #28a745;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
}

.status-badge.status-pending {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #90caf9;
}

.status-badge.status-in_progress {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffb74d;
}

.status-badge.status-completed {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #81c784;
}

.action-item-body {
    margin-bottom: 1rem;
}

.action-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.action-metadata {
    display: grid;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.metadata-item {
    font-size: 0.9rem;
    color: #495057;
    display: flex;
    gap: 0.5rem;
}

.metadata-item strong {
    min-width: 120px;
    color: #212529;
}

.action-item-footer {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.action-item-footer .btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

/* Action Items Summary Cards */
.gap-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gap-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gap-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.gap-card.critical {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.gap-card.important {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #000;
    border: none;
}

.gap-card.beneficial {
    background: linear-gradient(135deg, #a8edea 0%, #6dd5ed 100%);
    color: #000;
    border: none;
}

.gap-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gap-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* Filters */
.filters {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.filters label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.filters select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
}

.filters select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

/* Mobile Responsive for Action Items */
@media (max-width: 768px) {
    .action-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .metadata-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .metadata-item strong {
        min-width: auto;
    }

    .action-item-footer {
        flex-direction: column;
    }

    .action-item-footer .btn {
        width: 100%;
    }

    .gap-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .gap-count {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gap-summary {
        grid-template-columns: 1fr;
    }
}
