/* Minimal AZ Kooool Merchant Menu Manager Styles */

.az-menu-manager-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.az-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.az-menu-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.az-menu-actions {
    display: flex;
    gap: 12px;
}

/* Button Styles */
.az-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 40px;
    box-sizing: border-box;
}

.az-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.az-btn-primary {
    background: #667eea;
    color: white;
}

.az-btn-primary:hover {
    background: #5a6fd8;
}

.az-btn-secondary {
    background: #f093fb;
    color: white;
}

.az-btn-secondary:hover {
    background: #e681f9;
}

.az-btn-danger {
    background: #ff6b6b;
    color: white;
}

.az-btn-danger:hover {
    background: #ff5252;
}

.az-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

/* Form Styles */
.az-menu-form {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.az-form-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.az-form-section:last-child {
    border-bottom: none;
}

.az-form-section h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.az-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.az-form-grid-auto {
    grid-template-columns: 1fr 120px auto;
}

.az-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.az-form-group-full {
    grid-column: 1 / -1;
}

.az-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.az-form-group input,
.az-form-group textarea,
.az-form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.az-form-group input:focus,
.az-form-group textarea:focus,
.az-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Category Styles */
.az-category-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #f093fb;
    border: 1px solid #e9ecef;
}

/* Menu Item Styles */
.az-menu-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.az-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.az-menu-item-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Option Sets Styles */
.az-option-sets-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #dee2e6;
}

.az-option-sets-container h5 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.az-option-set {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.az-options-container {
    margin-top: 15px;
}

.az-option-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

/* Form Actions */
.az-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Loading Styles */
#az-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 18px;
}

/* Message Styles */
.az-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.az-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.az-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.az-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .az-menu-manager-container {
        padding: 10px;
        margin: 5px;
        border-radius: 8px;
    }
    
    .az-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .az-btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .az-form-group input,
    .az-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .az-merchant-header h2 {
        font-size: 1.75rem;
    }
    
    .az-menu-item-display {
        padding: 15px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.az-category-item,
.az-menu-item,
.az-option-set,
.az-option-item {
    animation: fadeIn 0.3s ease;
}

.az-message {
    animation: slideDown 0.3s ease;
}

/* Focus states for better UX */
.az-form-group input:focus,
.az-form-group textarea:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Button hover effects */
.az-btn {
    position: relative;
    overflow: hidden;
}

.az-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.az-btn:hover::before {
    width: 100%;
    height: 100%;
}