/* ========================================
   Salary Grade Selector Component
   ======================================== */
.salary-grade-selector {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.salary-grade-selector .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.salary-grade-selector .alert {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Service Record Timeline Component
   ======================================== */
.service-record-timeline {
    margin: 20px 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.timeline {
    position: relative;
    padding-left: 60px;
    padding-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0d6efd 0%, #dee2e6 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-marker.marker-original {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #495057;
}

.timeline-marker.marker-increment {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #20c997;
}

.timeline-marker.marker-adjustment {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-color: #0dcaf0;
}

.timeline-marker.marker-promotion {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    border-color: #fd7e14;
}

.timeline-marker.marker-transfer {
    background: linear-gradient(135deg, #6f42c1 0%, #d63384 100%);
    color: white;
    border-color: #d63384;
}

.timeline-marker.marker-default {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.timeline-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-title {
    font-size: 16px;
    color: #212529;
}

.timeline-date {
    font-size: 13px;
    margin-bottom: 4px;
}

.timeline-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f5;
}

.timeline-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   Feature Box (for Details page)
   ======================================== */
.feature-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    transition: all 0.2s;
}

.feature-box:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.feature-box div {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-marker {
        left: -22px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .salary-grade-selector .row > div {
        margin-bottom: 10px;
    }
}
