﻿/* Modern Modal Styles */
.kit-modal-dialog .modal-xl {
    max-width: 1000px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-icon .icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Bar */
.progress-modern {
    border-radius: 10px;
    background-color: #e9ecef;
}

    .progress-modern .progress-bar {
        border-radius: 10px;
        transition: width 0.6s ease;
    }

.bg-gradient-success {
    background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Step Navigation */
.step-navigation {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .step-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.step-description {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Form Steps */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

/* Cards */
.kit-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.kit-card-header {
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
}

.kit-card-body {
    padding: 1.5rem;
}

/* Form Groups */
.kit-form-group {
    margin-bottom: 1.5rem;
}

.kit-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

    .kit-label.required::after {
        content: " *";
        color: #dc3545;
        margin-left: 4px;
    }

.kit-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .kit-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

    .kit-input.is-invalid {
        border-color: #dc3545;
    }

    .kit-input.is-valid {
        border-color: #28a745;
    }

.kit-input-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Section Styles */
.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-subtitle {
    color: #495057;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Optional Sections */
.optional-section {
    margin: 1.5rem 0;
}

.section-toggle button {
    border: 1px dashed #dee2e6;
    background: transparent;
    transition: all 0.3s ease;
}

    .section-toggle button:hover {
        background: #f8f9fa;
        border-color: #667eea;
    }

.toggle-icon {
    transition: transform 0.3s ease;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

    .file-upload-area:hover {
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.05);
    }

.file-item {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

    .file-item:hover {
        background: #e9ecef;
    }

/* Buttons */
.kit-btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.kit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .kit-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        color: white;
        text-decoration: none;
    }

.kit-btn-secondary {
    background: #6c757d;
    color: white;
}

    .kit-btn-secondary:hover {
        background: #5a6268;
        color: white;
        text-decoration: none;
    }

.kit-btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

    .kit-btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
        color: white;
        text-decoration: none;
    }

.kit-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Ensure buttons are clickable */
.step-navigation-buttons .kit-btn {
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Sticky Footer */
.sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
}

/* Scrollable Modal Body */
.kit-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
}

    /* Custom Scrollbar */
    .kit-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .kit-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .kit-modal-body::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .kit-modal-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

/* Responsive Design */
@@media (max-width: 768px) {
    .kit-modal-dialog .modal-xl {
        max-width: 95%;
        margin: 1rem;
    }

    .step-navigation {
        padding: 0.5rem;
    }

    .step-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        margin-right: 0.5rem;
    }

    .kit-card-body {
        padding: 1rem;
    }
}

/* Summernote Customization */
.note-editor.note-frame {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

    .note-editor.note-frame:focus-within {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.note-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 6px 6px 0 0;
}

.note-editing-area {
    border-radius: 0 0 6px 6px;
}

.note-editable {
    padding: 15px;
    min-height: 120px;
    font-size: 14px;
    line-height: 1.5;
}

/* Summernote validation states */
.note-editor.is-invalid .note-frame {
    border-color: #dc3545;
}

.note-editor.is-valid .note-frame {
    border-color: #28a745;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem;
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    color: #495057;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #495057;
}

.alert-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

/* Loading spinner */
.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
