.step-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-header h2 {
    margin: 0;
    font-weight: 600;
}

.step-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.step-header .badge {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.header-actions .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-actions .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

.header-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 990px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.5rem);
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        min-width: unset;
    }
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0066cc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group-action {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
}

.btn-group-action .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.alert-info-custom {
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-info-custom strong {
    color: #0052a3;
}

.alert-warning-custom {
    background-color: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-warning-custom strong {
    color: #e65100;
}

.committee-card:after,
.card:after {
    display: none !important;
}

.committee-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.committee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.info-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.selector-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.exam-location {
    background-color: #dc3545;
    color: white;
}

.selection-location {
    background-color: #0d6efd;
    color: white;
}

.distance-info {
    font-size: 0.875rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group-mobile .btn {
        width: 100%;
    }
}

/* Company List */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.company-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.company-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
}

.company-card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.company-card-info {
    flex-grow: 1;
}

.company-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #001a4d;
    margin-bottom: 0.25rem;
}

.company-code {
    font-size: 0.85rem;
    color: #666;
    font-family: monospace;
    display: inline-block;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 0.25rem;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-view:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
}

#searchInput {
    padding-right: 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.1);
}

.search-input-wrapper .form-control,
.search-input-wrapper .form-select {
    padding-right: 2.5rem;
    border: none;
    border-bottom: 1px solid #5d7083;
    border-radius: 0;
    box-shadow: none !important;
    background-color: transparent;
}

.search-input-wrapper .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    padding-right: 0.75rem;
}

.search-input-wrapper .form-control:focus,
.search-input-wrapper .form-select:focus {
    border-color: #0066cc;
    box-shadow: none !important;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .company-card {
        flex-direction: column;
        text-align: center;
    }

    .company-card-content {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-view {
        width: 100%;
        justify-content: center;
    }
}

/* Authorization History */
.authorization-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.authorization-status {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.authorization-status.granted {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.authorization-status.denied {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* Interview Sessions */
.session-card:after,
.card:after {
    display: none !important;
}

.session-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.progress-custom {
    height: 20px;
}

.progress-custom.progress-sm {
    height: 8px;
}

/* Interview Session Slot Management */
.slot-card {
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

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

.slot-card.occupato {
    border-color: #008758;
    background-color: #f0f6f4;
}

.slot-card.occupato:hover {
    background-color: #e6f0ed;
}

.candidato-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.candidato-item:hover {
    background-color: #f5f5f5;
}

.candidato-item.selected {
    background-color: #e6f0ff;
    border-color: #0066cc;
}

/* Project list metadata styles */
.project-metadata {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.project-stats {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.project-warning {
    font-size: 0.8rem;
    color: #f0ad4e;
    margin-top: 0.5rem;
}

.project-deadline-warning {
    font-size: 0.8rem;
    color: #ff9800;
}

.project-deadline-overdue {
    font-size: 0.8rem;
    color: #f44336;
}

.project-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

.required-field label::after {
    content: '*';
}

.search-autocomplete .select2-container {
    width: 100%;
    min-width: auto;
    box-shadow: none;
    color: #1a1a1a;
}

.search-autocomplete .select2-container--default .select2-selection--single {
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid #5d7083;
}

.search-autocomplete .select2-selection__arrow {
    display: none !important;
}

.search-autocomplete .select2-selection__rendered {
    padding: .3rem 0 !important;
    line-height: 1em !important;
}