/* === FORM COMPONENTS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: #EF4444;
}

.form-error {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* === RADIO BUTTONS === */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #2563EB;
    background: #F8FAFC;
}

.radio-option.selected {
    border-color: #2563EB;
    background: #EBF4FF;
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-content h4 {
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.radio-content p {
    color: #6B7280;
    margin: 0;
}

/* === FILE UPLOAD === */
.file-upload {
    border: 2px dashed #D1D5DB;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: #2563EB;
    background: #F8FAFC;
}

.file-upload-icon {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: #9CA3AF;
}

.file-upload input[type="file"] {
    display: none;
}

/* === PROGRESS BAR === */
.progress {
    width: 100%;
    height: 0.5rem;
    background: #E5E7EB;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563EB, #1E40AF);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === STEPPER === */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

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

.step:not(:last-child)::after {
    content: '';
    width: 3rem;
    height: 2px;
    background: #E5E7EB;
    margin: 0 1rem;
}

.step.completed:not(:last-child)::after {
    background: #2563EB;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: #E5E7EB;
    color: #6B7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step.active .step-number {
    background: #2563EB;
    color: white;
}

.step.completed .step-number {
    background: #059669;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

.step.active .step-label {
    color: #2563EB;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #F3F4F6;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #059669;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.info {
    border-left: 4px solid #2563EB;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: #059669;
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.info .toast-icon {
    color: #2563EB;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #6B7280;
}

/* === STATUS INDICATORS === */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status.processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.status.completed {
    background: #D1FAE5;
    color: #065F46;
}

.status.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* === LOADING SPINNER === */
.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

/* === TABLE === */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.table th {
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.table tbody tr:hover {
    background: #F9FAFB;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .radio-group {
        gap: 0.75rem;
    }
    
    .radio-option {
        padding: 1rem;
    }
    
    .file-upload {
        padding: 2rem 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .stepper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}
