/* Demo Modal Styles */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
}

.demo-modal-content {
    position: relative;
    background-color: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.demo-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.demo-close {
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.2s;
}

.demo-close:hover {
    color: #1f2937;
}

.demo-modal-body {
    padding: 24px;
}

.demo-modal-body > p {
    margin-bottom: 24px;
    color: #4b5563;
    line-height: 1.6;
}

/* Form Styles */
.demo-form-group {
    margin-bottom: 20px;
}

.demo-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.demo-form-group input,
.demo-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #1f2937;
    transition: all 0.2s;
    background-color: #ffffff;
}

.demo-form-group input:focus,
.demo-form-group textarea:focus {
    outline: none;
    border-color: #7630a0;
    box-shadow: 0 0 0 3px rgba(118, 48, 160, 0.1);
}

.demo-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alert Messages */
.demo-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.demo-alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.demo-alert-success i {
    color: #10b981;
}

.demo-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.demo-alert-error i {
    color: #ef4444;
}

/* Form Actions */
.demo-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.demo-btn-secondary,
.demo-btn-primary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-btn-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
}

.demo-btn-secondary:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.demo-btn-primary {
    background-color: #7630a0;
    color: white;
}

.demo-btn-primary:hover {
    background-color: #5e2585;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 48, 160, 0.3);
}

.demo-btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .demo-modal {
        padding: 10px;
    }
    
    .demo-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .demo-modal-header {
        padding: 20px;
    }
    
    .demo-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .demo-modal-body {
        padding: 20px;
    }
    
    .demo-form-actions {
        flex-direction: column-reverse;
    }
    
    .demo-btn-secondary,
    .demo-btn-primary {
        width: 100%;
        justify-content: center;
    }
}