/* Base Styles */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Input Styles */
.grid-cols-2 {
    gap: 1.5rem;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.input-label {
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 0.75rem;
    color: #666;
    transition: all 0.3s ease;
}

input, select {
    width: 100%;
    transition: border-color 0.3s ease;
    position: relative;
}

input:focus, select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Category Button Styles */
#categoriesContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-button {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-button.selected {
    background-color: #e6f2ff;
    border-color: #3B82F6;
}

.category-button .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-button .label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section Selection Styles */
.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.section-card {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.section-card:hover {
    border-color: #3B82F6;
    background-color: #f0f5ff;
}

.section-card.selected {
    border-color: #3B82F6;
    background-color: #e6f2ff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-card input[type="checkbox"] {
    display: none;
}

.section-card .checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.section-card.selected .checkbox-custom {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

.section-card.selected .checkbox-custom::after {
    content: '✔';
    color: white;
    font-size: 14px;
}

.section-card-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

/* Section Details Styles */
#sectionDetailsContainer > div {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

#sectionDetailsContainer h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}

/* Preview Styles */
#previewContent {
    background-color: white;
}

.preview-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.preview-section:last-child {
    border-bottom: none;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 9999px;
    overflow: hidden;
    height: 0.5rem;
}

.progress {
    height: 100%;
    background-color: #3B82F6;
    transition: width 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #categoriesContainer {
        grid-template-columns: 1fr;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
}

/* Button States */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step.active {
    animation: fadeIn 0.3s ease-out;
}

/* Input States */
.input-container input:focus + .input-label,
.input-container input:not(:placeholder-shown) + .input-label {
    color: #3B82F6;
}

/* Error States */
.input-error {
    border-color: #EF4444 !important;
}

.error-message {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #10B981 !important;
}

/* PDF Preview Styles */
.pdf-preview {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}