/* ===================================================================
   PPG REFINISH CRM v2.0 - SKILL MATRIX STYLES
   Painter skills tracking and competencies management
   =================================================================== */

/* Painters Grid */
.painters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Painter Card */
.painter-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.painter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
}

/* Painter Header */
.painter-header {
    padding: 20px;
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 2px solid #0066CC;
}

.painter-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0066CC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.painter-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E9ECEF, #DEE2E6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ADB5BD;
}

.painter-photo-placeholder i {
    font-size: 36px;
    color: #6C757D;
}

.painter-info {
    flex: 1;
}

.painter-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.painter-customer {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #6C757D;
    display: flex;
    align-items: center;
    gap: 6px;
}

.painter-position {
    margin: 0;
    font-size: 12px;
    color: #6C757D;
}

/* Painter Skills Section */
.painter-skills {
    padding: 20px;
    flex-grow: 1;
}

.skill-summary {
    margin-bottom: 16px;
}

.skill-label {
    font-size: 12px;
    color: #6C757D;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.skill-progress {
    height: 8px;
    background: #E9ECEF;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.skill-level {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.skill-badge i {
    font-size: 10px;
}

/* Painter Footer */
.painter-footer {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #F8F9FA;
    border-top: 1px solid #E9ECEF;
}

.painter-footer button {
    flex: 1;
}

/* Skill Matrix Detail View */
.skill-matrix-detail {
    padding: 24px;
}

.painter-detail-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #0066CC;
}

.painter-detail-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0066CC;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.painter-detail-info {
    flex: 1;
}

.painter-detail-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #212529;
}

.painter-detail-meta {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    font-size: 14px;
    color: #6C757D;
}

.painter-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.overall-skill-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #0066CC, #00509E);
    border-radius: 12px;
    color: white;
    margin-top: 16px;
}

.overall-skill-display h3 {
    margin: 0 0 8px 0;
    font-size: 48px;
    font-weight: 700;
}

.overall-skill-display p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Skill Category Sections */
.skill-category {
    margin-bottom: 32px;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E9ECEF;
}

.skill-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.skill-category-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.skills-list {
    display: grid;
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: #0066CC;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.skill-item-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
}

.skill-item-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-item-stars {
    font-size: 16px;
}

.skill-item-level {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    min-width: 100px;
    text-align: center;
}

.skill-item-certified {
    color: #28A745;
    font-size: 18px;
}

.skill-item-actions {
    margin-left: 12px;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.star-rating-input i {
    font-size: 36px;
    color: #DEE2E6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: #FFC107;
    transform: scale(1.2);
}

/* Assess Skill Modal */
.assess-skill-form .form-group {
    margin-bottom: 20px;
}

.proficiency-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.proficiency-option {
    padding: 16px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proficiency-option:hover {
    border-color: #0066CC;
    background: #F8F9FA;
}

.proficiency-option.selected {
    border-color: #0066CC;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

.proficiency-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

.proficiency-option .label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.proficiency-option .range {
    font-size: 11px;
    color: #6C757D;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ADB5BD;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 22px;
    color: #495057;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    color: #6C757D;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1200px) {
    .painters-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .painters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .painter-header {
        flex-direction: column;
        text-align: center;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        margin-bottom: 8px;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100% !important;
    }
    
    .painter-footer {
        flex-direction: column;
    }
    
    .painter-footer button {
        width: 100%;
    }
    
    .proficiency-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .painter-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .painter-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .skill-badges {
        flex-direction: column;
    }
    
    .proficiency-selector {
        grid-template-columns: 1fr;
    }
}
