/* CV-specific styles for the HUP platform CV management page */

.cv-help-btn {
    min-width: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.cv-computed-stat {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

/* CV Section */
.cv-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-subheader {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 0;
}

/* Custom On/Off Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6c757d;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch-input:checked + .slider {
    background-color: #28a745;
}

.switch-input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-input:focus + .slider {
    box-shadow: 0 0 5px rgba(110, 69, 226, 0.5);
}

.switch:hover .slider {
    box-shadow: 0 0 10px rgba(110, 69, 226, 0.3);
}

/* Profile Info */
.profile-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.profile-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Tables */
.table-dark {
    background: transparent;
}

.table-dark th,
.table-dark td {
    border-color: var(--glass-border);
}

.table-dark tbody tr:hover {
    background: rgba(110, 69, 226, 0.1);
}

/* Timeline Items */
.timeline-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.timeline-item h5 {
    font-size: 1rem;
    color: var(--light);
}

.timeline-item h6 {
    font-size: 0.9rem;
    color: #ccc;
}

.timeline-item p {
    font-size: 0.85rem;
    color: #ccc;
}

/* Buttons */
.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--page-primary);
    transform: scale(1.05);
}

.btn-outline-light,
.btn-outline-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-outline-light:hover {
    background: var(--page-primary);
}

.btn-outline-danger:hover {
    background: #dc3545;
}

/* Modal */
.modal-content {
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.modal-header,
.modal-footer {
    border-color: var(--glass-border);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--light);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(110, 69, 226, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cv-section {
        padding: 1rem;
    }

    .section-subheader {
        font-size: 1.1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .timeline-item {
        padding: 0.75rem;
    }

    .switch {
        width: 40px;
        height: 20px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        bottom: 2px;
        left: 2px;
    }

    .switch-input:checked + .slider:before {
        transform: translateX(20px);
    }
}

@media (max-width: 576px) {
    .table {
        display: block;
        overflow-x: auto;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}