/* ProfileSetup.css - Multi-Step Profile Setup Form Styles */

/* Main Layout */
main {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* Card Styling */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.shadow-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Step Sidebar */
.step-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e9ecef;
    min-height: 700px;
}

/* Progress Section */
.progress-section {
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.progress {
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease, background-color 0.3s ease !important;
}

#progressPercentage {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

#progressMessage {
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}


.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
    background-color: transparent;
}

.step-item:hover {
    background-color: #f0f2f5;
    transform: translateX(2px);
}

.step-item.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-left-color: #084298;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transform: translateX(4px);
}

.step-item.completed {
    background-color: #d1e7dd;
    border-left-color: #198754;
}

.step-item.completed .step-title {
    color: #146c43;
    font-weight: 500;
}

.step-item.completed .step-number {
    background-color: #198754;
    color: white;
}

.step-item.active .step-title,
.step-item.active .step-number {
    color: white;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.step-number {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: white;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    flex: 1;
}

.step-item.active .step-title {
    color: white;
    font-weight: 600;
}

/* Badge in step item */
.step-content .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    white-space: nowrap;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Controls */
.form-control,
.form-select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    background-color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-label {
    margin-bottom: 8px;
    color: #212529;
    font-size: 0.9rem;
    font-weight: 500;
}

.text-danger {
    color: #dc3545 !important;
}

/* Custom Checkboxes */
.custom-checkbox {
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.custom-checkbox:hover {
    background-color: #f8f9fa;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Upload Area */
.upload-area {
    margin-bottom: 20px;
}

.upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #6c757d;
}

.uploaded-file {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Icons */
.icon-xs {
    width: 1rem;
    height: 1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* Step Indicator */
.step-indicator {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: auto;
    }

    .step-list {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .step-item {
        min-width: 140px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-content {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .step-content .badge {
        display: none;
    }

    .step-indicator {
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Text Area */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Progress Bar (Optional) */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e9ecef;
    z-index: 1000;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    transition: width 0.3s ease;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Custom Scrollbar */
.step-list::-webkit-scrollbar {
    height: 6px;
}

.step-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.step-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.step-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}