/* Performance Review System Styles */

/* Rating Stars */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    width: 20%;
    text-align: center;
    font-size: 1.5em;
    color: #ddd;
    padding: 0.3rem;
    transition: all 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #FFD700;
}

.rating-labels {
    font-size: 0.7em;
    margin-top: 0.25rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-inprogress {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-acknowledged {
    background-color: #cff4fc;
    color: #055160;
}

/* Performance Criteria Cards */
.criteria-card {
    transition: all 0.2s ease;
}

.criteria-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.criteria-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Goals */
.goal-item {
    position: relative;
    padding-left: 1.5rem;
}

.goal-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.goal-not-started:before {
    background-color: #6c757d;
}

.goal-in-progress:before {
    background-color: #ffc107;
}

.goal-completed:before {
    background-color: #198754;
}

.goal-cancelled:before {
    background-color: #dc3545;
}

/* Timeline */
.review-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.review-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #0d6efd;
    z-index: 1;
}

.timeline-draft:before {
    background-color: #6c757d;
}

.timeline-inprogress:before {
    background-color: #ffc107;
}

.timeline-completed:before {
    background-color: #198754;
}

.timeline-acknowledged:before {
    background-color: #0dcaf0;
}

/* Analytics */
.stat-card {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    border-radius: 0.5rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-summary .fas {
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rating-labels span {
        font-size: 0.6em;
    }
    
    .rating-input label {
        font-size: 1.2em;
    }
}