/* ==========================================================================
   UI KIT - Restaurant Menu Generator
   Modern Glass Effect Components
   ========================================================================== */

/* ==========================================================================
   BASE STYLES & VARIABLES
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #d4a574;
    --primary-hover: #be9160;
    --secondary-color: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   GLASS COMPONENTS
   ========================================================================== */

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

/* ==========================================================================
   TOUCH-OPTIMIZED COMPONENTS
   ========================================================================== */

/* Touch Target Base Class */
.touch-target {
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.touch-target:active {
    transform: scale(0.95);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #94a3b8;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: var(--primary-color);
    background: rgba(212, 165, 116, 0.1);
    outline: none;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(212, 165, 116, 0.15);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Floating Action Button (FAB) */
.fab-button {
    position: fixed;
    bottom: 80px; /* Above bottom nav */
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
}

.fab-button:active {
    transform: scale(0.95);
}

/* ==========================================================================
   MENU CARD COMPONENTS
   ========================================================================== */

/* Menu Grid Container */
.menu-grid {
    display: grid;
    gap: 16px;
    padding: 16px;
    margin-bottom: 80px; /* Space for bottom nav */
}

/* Responsive Grid Layout */
@media (max-width: 767px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Menu Card */
.menu-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
}

.menu-card.selected {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
}

/* Menu Card Header */
.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.menu-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    margin-right: 8px;
}

.menu-card-category {
    background: rgba(212, 165, 116, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Menu Card Content */
.menu-card-content {
    margin-bottom: 16px;
}

.menu-card-weight {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.menu-card-prices {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-card-price {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.menu-card-price.primary {
    font-size: 18px;
    color: var(--primary-color);
}

/* Menu Card Actions */
.menu-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.menu-card-action {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.menu-card-action.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.menu-card-action.edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.menu-card-action.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.menu-card-action.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Swipe Actions */
.menu-card.swiping {
    transition: transform 0.1s ease;
}

.menu-card.swipe-left {
    transform: translateX(-80px);
}

.menu-card.swipe-right {
    transform: translateX(80px);
}

.swipe-action {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swipe-action.left {
    right: 0;
    background: #ef4444;
}

.swipe-action.right {
    left: 0;
    background: #3b82f6;
}

.menu-card.swipe-left .swipe-action.left,
.menu-card.swipe-right .swipe-action.right {
    opacity: 1;
}

/* ==========================================================================
   QUICK ACTIONS
   ========================================================================== */

/* Quick Actions Container */
.quick-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Quick Action Button */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.4);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.quick-action-btn i {
    font-size: 18px;
    margin-bottom: 2px;
}

.quick-action-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* Hide touch-specific elements on desktop */
@media (min-width: 1024px) {
    /* Quick actions are now visible on desktop - removed display: none */

    .fab-button {
        display: none !important;
    }

    /* Use original checkbox layout on desktop instead of cards */
    .menu-grid {
        display: none !important;
    }
}

/* Responsive quick actions */
@media (max-width: 767px) {
    .quick-actions {
        gap: 6px;
    }

    .quick-action-btn {
        min-width: 50px;
        min-height: 50px;
        padding: 6px;
    }

    .quick-action-btn i {
        font-size: 16px;
    }

    .quick-action-label {
        font-size: 9px;
    }
}

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    min-height: 48px; /* Touch-friendly minimum */
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6b885, #d4a574);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #7c8ba1);
    color: white;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #a5b4c7, var(--secondary-color));
    box-shadow: 0 8px 25px rgba(148, 163, 184, 0.4);
}


/* Glass Button */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: #1e293b;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */

/* Input Fields */
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #3a3a3a;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Checkbox */
.form-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.form-checkbox:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* ==========================================================================
   NAVIGATION COMPONENTS
   ========================================================================== */

/* Main Navigation Tabs - White background with shadow */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    overflow-x: auto;
    padding-bottom: 5px;
    background: white;
    border-radius: 15px 15px 0 0;
    padding: 8px 8px 5px 8px;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.12), 0 2px 6px rgba(0,0,0,0.04);
}

/* Individual Navigation Tab - Rounded top corners only */
.nav-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-size: 0.95rem;
}

/* Tab Hover State - Light background with theme color */
.nav-tab:hover {
    background: rgba(212, 165, 116, 0.1);
    color: #d4a574;
}

/* Active Tab - Gradient background with shadow and bottom line */
.nav-tab.active {
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: white;
    box-shadow: 0 -2px 10px rgba(212, 165, 116, 0.3);
}

/* Active Tab Bottom Line - Extends the visual connection */
.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #d4a574, #c49464);
}

/* ==========================================================================
   CATEGORY NAVIGATION NOTES
   ========================================================================== */

/*
 * Category tabs (.category-tabs) use the same tab styles (.category-tab)
 * but have NO background, border-radius, or box-shadow on the container.
 * This creates a cleaner look for secondary navigation within content areas.
 *
 * Example:
 * .category-tabs {
 *     display: flex;
 *     gap: 8px;
 *     margin-bottom: 20px;
 *     border-bottom: 2px solid #f1f5f9;
 *     overflow-x: auto;
 *     padding-bottom: 5px;
 * }
 */

/* ==========================================================================
   ALERT COMPONENTS
   ========================================================================== */

/* Custom Alert Overlay */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(212, 165, 116, 0.1);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.custom-alert-overlay.show .custom-alert {
    transform: scale(1) translateY(0);
}

.custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: alertShimmer 4s infinite;
}

.custom-alert-header {
    padding: 25px 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.custom-alert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: pulse 2s infinite;
}

.custom-alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.custom-alert-message {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.custom-alert-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.custom-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.custom-alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.custom-alert-btn:hover::before {
    left: 100%;
}

.custom-alert-btn.primary {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.9), rgba(212, 165, 116, 1));
    color: white;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    flex: 1;
}

.custom-alert-btn.primary:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 1), rgba(190, 145, 96, 1));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
}

.custom-alert-btn.secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.custom-alert-btn.secondary:hover {
    background: rgba(148, 163, 184, 0.3);
    color: #475569;
    transform: translateY(-1px);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes alertShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-tabs {
        gap: var(--spacing-xs);
    }
    
    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .nav-tab {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: var(--font-size-sm);
    }
    
    .custom-alert {
        max-width: 350px;
        margin: 20px;
    }
    
    .custom-alert-actions {
        flex-direction: column;
    }
    
    .custom-alert-btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
    }
    
    .glass-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .form-input {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 0.875rem 1rem;
    }
    
    .nav-tab {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .custom-alert {
        border-radius: 16px;
        margin: 15px;
    }
    
    .custom-alert-header {
        padding: 20px 25px 15px;
    }
    
    .custom-alert-actions {
        padding: 15px 25px 25px;
    }
    
    .custom-alert-title {
        font-size: 1.1rem;
    }
    
    .custom-alert-message {
        font-size: 0.9rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-tab:hover,
    .form-input:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .custom-alert {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .custom-alert-actions {
        flex-direction: row;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox */
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }

/* Text */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Colors */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: 9999px !important; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }