/* Admin Panel Custom Styles */

/* ========================================
   BRAND COLORS & CSS VARIABLES
   ======================================== */

:root {
    /* Primary Brand Colors */
    --brand-primary: #3b82f6;
    --brand-primary-dark: #2563eb;
    --brand-primary-darker: #1d4ed8;
    --brand-secondary: #113D5A;
    --brand-orange: #F59113;
    --brand-orange-dark: #d47810;
    --brand-orange-darker: #b96609;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-success-light: #dcfce7;
    --color-success-text: #166534;
    
    --color-danger: #dc2626;
    --color-danger-dark: #b91c1c;
    --color-danger-light: #fee2e2;
    --color-danger-bright: #ef4444;
    
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-warning-light: #fef3c7;
    --color-warning-text: #d97706;
    
    --color-info: #3b82f6;
    --color-info-dark: #2563eb;
    --color-info-darker: #1d4ed8;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* UI Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #fafafa;
    
    --border-light: #f3f4f6;
    --border-default: #e5e7eb;
    --border-dark: #d1d5db;
    
    --text-primary: #1f2937;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Button Gradients - Using brand colors with single-color variations */
    /* These will use brand color variables from frontend style.css or be overridden by dynamic injection */
    --gradient-button-primary: linear-gradient(135deg, var(--brand-primary, #113D5A) 0%, var(--brand-primary-light, #1a5a80) 100%);
    --gradient-button-primary-hover: linear-gradient(135deg, var(--brand-primary-dark, #0a2939) 0%, var(--brand-primary, #113D5A) 100%);
    --gradient-button-accent: linear-gradient(135deg, var(--brand-accent, #F59113) 0%, var(--brand-accent-light, #f7a83d) 100%);
    --gradient-button-accent-hover: linear-gradient(135deg, var(--brand-accent-dark, #d47810) 0%, var(--brand-accent, #F59113) 100%);
    
    /* Legacy gradient variables for backward compatibility */
    --gradient-blue: var(--gradient-button-primary);
    --gradient-blue-hover: var(--gradient-button-primary-hover);
    
    --gradient-green: var(--gradient-button-accent);
    --gradient-green-hover: var(--gradient-button-accent-hover);
    
    --gradient-orange: var(--gradient-button-accent);
    --gradient-orange-hover: var(--gradient-button-accent-hover);
    
    --gradient-red: linear-gradient(135deg, var(--color-danger-bright, #ef4444) 0%, var(--color-danger, #dc2626) 100%);
    --gradient-red-hover: linear-gradient(135deg, var(--color-danger, #dc2626) 0%, var(--color-danger-dark, #b91c1c) 100%);
    
    --gradient-gray: var(--gradient-button-primary);
    --gradient-gray-hover: var(--gradient-button-primary-hover);
    
    --gradient-purple: var(--gradient-button-primary);
    --gradient-purple-hover: var(--gradient-button-primary-hover);
    
    --gradient-yellow: var(--gradient-button-accent);
    --gradient-yellow-hover: var(--gradient-button-accent-hover);
}

/* ========================================
   GLOBAL ADMIN STYLES
   ======================================== */

/* Form Checkbox Styles - Global checkbox styling */
input[type="checkbox"],
.form-checkbox {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
    flex-shrink: 0 !important;
    accent-color: #3b82f6;
    margin: 0 !important;
    margin-right: 15px !important;
}

/* Override form-label display when inside flex containers with checkboxes */
label.flex .form-label,
label.flex > div .form-label,
label.flex input[type="checkbox"] + div .form-label,
label.flex input[type="checkbox"] ~ div .form-label,
label.flex input.form-checkbox + div .form-label,
label.flex input.form-checkbox ~ div .form-label {
    display: inline-block !important;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 600;
    color: #374151;
}

/* Specific styling for form-label when next to checkbox - direct sibling */
label.flex input[type="checkbox"] + .form-label,
label.flex input[type="checkbox"] ~ .form-label,
label.flex input.form-checkbox + .form-label,
label.flex input.form-checkbox ~ .form-label {
    display: inline-block !important;
    margin: 0;
}

/* Ensure proper alignment for checkbox containers with items-center class */
label.flex.items-center,
label.flex.items-center.p-4 {
    align-items: center !important;
}

/* Ensure checkbox stays centered and doesn't stretch */
label.flex input[type="checkbox"],
label.flex .form-checkbox,
label.flex input.form-checkbox {
    align-self: center;
    margin-top: 0;
    margin-right: 15px;
}

/* Ensure the div.flex-1 container aligns properly */
label.flex > div.flex-1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Special handling for checkboxes with explicit size classes */
label.flex input[type="checkbox"].h-5,
label.flex .form-checkbox.h-5,
input[type="checkbox"].h-5,
.form-checkbox.h-5,
input[type="checkbox"].w-5,
.form-checkbox.w-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0;
    margin-right: 15px !important;
}

/* Ensure the text content paragraph doesn't affect alignment */
label.flex input[type="checkbox"] + div p,
label.flex input.form-checkbox + div p {
    margin-top: 0.25rem;
    line-height: 1.5;
}

.field-description {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.375rem;
    line-height: 1.4;
}

/* ========================================
   DASHBOARD & STATS STYLES
   ======================================== */
.breadcrumb-preview-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    position: sticky;
    top: 20px;
}

.preview-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.preview-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #113D5A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.preview-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    background: white;
    cursor: pointer;
}

.preview-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Device Toggle */
.device-toggle {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.device-toggle-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.device-toggle-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.device-toggle-btn.active {
    background: #F59113;
    color: white;
    border-color: #F59113;
}

/* Preview Container */
.preview-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    position: relative;
}

.preview-container.preview-desktop {
    max-width: 100%;
}

.preview-container.preview-tablet {
    max-width: 768px;
    margin: 0 auto;
}

.preview-container.preview-mobile {
    max-width: 375px;
    margin: 0 auto;
}

.preview-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.preview-content.preview-loading {
    opacity: 0.5;
}

.preview-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    z-index: 10;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #9ca3af;
    min-height: 200px;
}

.preview-placeholder i {
    margin-bottom: 1rem;
}

.preview-error {
    padding: 2rem;
    text-align: center;
    color: #dc2626;
}

.preview-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.preview-error .error-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.preview-disabled {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.preview-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    margin-top: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .breadcrumb-split-layout {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb-preview-panel {
        position: relative;
        top: auto;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .breadcrumb-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .preview-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Scrollbar Styling */
.breadcrumb-tab-content-wrapper::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.breadcrumb-tab-content-wrapper::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.breadcrumb-tab-content-wrapper::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.breadcrumb-tab-content-wrapper::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sidebar Styles */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

#sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Navigation Section Toggle Styles */
.nav-section-toggle {
    user-select: none;
}

.nav-section-toggle:hover {
    background-color: #f3f4f6;
}

.nav-section-toggle.nav-collapsed {
    margin-bottom: 0;
}

/* Navigation Section Items Container */
.nav-section-items {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
    max-height: 1000px;
    opacity: 1;
    margin-bottom: 0;
}

.nav-section-items.nav-collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

/* Chevron icon transition */
.nav-section-toggle .fa-chevron-down {
    transition: transform 0.3s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 40;
    }
    
    main {
        margin-left: 0;
    }
}

/* Maintenance Mode Badge */
.maintenance-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dc2626; /* Red-600 */
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    white-space: nowrap;
}

.maintenance-badge:hover {
    background: #b91c1c; /* Red-700 */
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Responsive - Hide text on very small screens */
@media (max-width: 640px) {
    .maintenance-badge span {
        display: none;
    }
    .maintenance-badge {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
    }
}

/* Admin Card Styles */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Collapsible Card Header */
.admin-card-header.collapsible {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
    padding: 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.admin-card-header.collapsible:hover {
    background-color: #f9fafb;
}

.admin-card-header.collapsible .collapse-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.2s ease;
}

.admin-card-header.collapsible:hover .collapse-icon {
    color: #374151;
}

.admin-card-header.collapsible.collapsed .collapse-icon {
    transform: translateY(-50%) rotate(-90deg);
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding-right: 2.5rem;
}

.admin-card-subtitle {
    font-size: 0.875rem;
    color: #000000;
    font-weight: 500;
    margin-top: 0.25rem;
    padding-right: 2.5rem;
}

/* Collapsible Card Body */
.admin-card-body {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 5000px;
    opacity: 1;
}

.admin-card-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.admin-card.collapsed {
    padding-bottom: 0;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.stat-card-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Stat card color variations */
.stat-card.stat-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.stat-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.stat-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.stat-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.stat-card.stat-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.stat-card.stat-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card.stat-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-card.stat-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-card.stat-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.stat-card.stat-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.stat-card.stat-gray {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.stat-card.stat-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.50rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 0.50rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-color: white;
    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;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   BUTTON STYLES - Global Gradient System
   ======================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Primary - Using Brand Primary Color */
.btn-primary {
    background: var(--gradient-button-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-button-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Success - Using Brand Accent Color */
.btn-success {
    background: var(--gradient-button-accent);
    color: white;
}

.btn-success:hover {
    background: var(--gradient-button-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Danger - Always Red (Delete/Destructive Actions) */
.btn-danger {
    background: var(--gradient-red);
    color: white;
}

.btn-danger:hover {
    background: var(--gradient-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Warning/Orange - Using Brand Accent Color */
.btn-warning,
.btn-orange {
    background: var(--gradient-button-accent);
    color: white;
}

.btn-warning:hover,
.btn-orange:hover {
    background: var(--gradient-button-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Secondary - Using Brand Primary Color */
.btn-secondary {
    background: var(--gradient-button-primary);
    color: white;
    opacity: 0.8;
}

.btn-secondary:hover {
    background: var(--gradient-button-primary-hover);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Additional Gradient Buttons */

/* Purple - Using Brand Primary Color */
.btn-purple {
    background: var(--gradient-button-primary);
    color: white;
}

.btn-purple:hover {
    background: var(--gradient-button-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Yellow - Using Brand Accent Color */
.btn-yellow {
    background: var(--gradient-button-accent);
    color: white;
}

.btn-yellow:hover {
    background: var(--gradient-button-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Outline Button (No Gradient) */
.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Button Sizes */
.btn-xs {
    padding: 0.375rem 0.5rem;
    font-size: 0.625rem;
    min-width: auto;
}

.btn-sm {
    padding: 0.6875rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Alias Classes for Specific Actions */
/* ⚠️ DEPRECATED: These classes are maintained for backward compatibility only.
   Use standard button variants instead:
   - .btn-edit → Use .btn-success instead
   - .btn-view → Use .btn-primary instead
   - .btn-delete → Use .btn-danger instead
   - .btn-clear → Use .btn-danger instead
   See docs/BUTTON_COMPONENT_GUIDE.md for details */

.btn-edit {
    background: var(--gradient-button-accent);
    color: white;
}

.btn-edit:hover {
    background: var(--gradient-button-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-view {
    background: var(--gradient-button-primary);
    color: white;
}

.btn-view:hover {
    background: var(--gradient-button-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-delete,
.btn-clear {
    background: var(--gradient-red);
    color: white;
}

.btn-delete:hover,
.btn-clear:hover {
    background: var(--gradient-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Disable Button - Always Red */
.btn-disable {
    background: var(--gradient-red);
    color: white;
}

.btn-disable:hover {
    background: var(--gradient-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   TOOLTIP COMPONENT
   ======================================== */

#admin-tooltip {
    animation: tooltip-fade-in 0.2s ease-out;
    opacity: 0;
}

#admin-tooltip.show {
    opacity: 1;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    table-layout: auto; /* Allow flexible column widths based on content and constraints */
}

.admin-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

/* Flexible columns - allow growth (flex-1 works differently in tables, we use min-width + auto width) */
.admin-table th[class*="min-w"],
.admin-table td[class*="min-w"] {
    width: auto; /* Allow columns to grow beyond min-width */
}

/* Fixed width columns */
.admin-table th[class*="w-["],
.admin-table td[class*="w-["] {
    width: var(--col-width, auto); /* Fixed width from Tailwind classes */
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   TABLE SORTING STYLES
   ======================================== */

/* Sortable header styling */
.admin-table th.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.admin-table th.sortable-header:hover {
    background: #f1f5f9;
}

.admin-table th.sortable-header .sort-header-link {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.admin-table th.sortable-header .sort-header-link:hover {
    color: #3b82f6;
}

.admin-table th.sortable-header .sort-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.admin-table th.sortable-header .sort-indicator {
    font-size: 0.75rem;
    color: #6b7280;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.admin-table th.sortable-header:hover .sort-indicator {
    color: #3b82f6;
}

.admin-table th.sortable-header.sort-asc .sort-indicator,
.admin-table th.sortable-header.sort-desc .sort-indicator {
    color: #3b82f6;
}

.admin-table th.sortable-header .sort-indicator.sort-inactive {
    opacity: 0.4;
}

.admin-table th.sortable-header:hover .sort-indicator.sort-inactive {
    opacity: 0.7;
}

/* ========================================
   ALERT COMPONENTS - Standardized Notifications
   See docs/ALERT_COMPONENT_GUIDE.md
   ======================================== */

/* Alert Base */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.alert-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.alert-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Success Alert - Green */
.alert-success {
    background-color: #dcfce7; /* green-100 */
    border-color: #86efac; /* green-300 */
    color: #166534; /* green-800 */
}

/* Error Alert - Red */
.alert-error {
    background-color: #fee2e2; /* red-100 */
    border-color: #fca5a5; /* red-300 */
    color: #991b1b; /* red-800 */
}

/* Warning Alert - Yellow */
.alert-warning {
    background-color: #fef3c7; /* yellow-100 */
    border-color: #fde047; /* yellow-300 */
    color: #92400e; /* yellow-800 */
}

/* Info Alert - Blue */
.alert-info {
    background-color: #dbeafe; /* blue-100 */
    border-color: #93c5fd; /* blue-300 */
    color: #1e40af; /* blue-800 */
}

/* ========================================
   STATUS BADGES
   ======================================== */

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-featured {
    background: #fef3c7;
    color: #d97706;
}

.status-pending {
    background: #e0e7ff;
    color: #3730a3;
}

/* Image Upload Styles */
.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #3b82f6;
}

.image-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

/* Search and Filter Styles */
.search-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 100%;
    padding: 0.50rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
    padding: 0.50rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
}

/* Global Pagination System */
.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.pagination-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-per-page label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-per-page select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pagination-per-page select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pagination a {
    color: #6b7280;
    border-color: #e5e7eb;
    background: white;
}

.pagination a:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.pagination .active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination .disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.pagination .pagination-ellipsis {
    color: #9ca3af;
    cursor: default;
}

/* Responsive Design */
@media (max-width: 640px) {
    .pagination-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-per-page {
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    padding: 1rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.3);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-card {
        padding: 1rem;
    }
    
    .search-filter-bar {
        padding: 1rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .admin-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .btn {
        display: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Remove focus outline from all interactive elements */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: none;
}

/* Media Library Styles */
.media-item {
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-2px);
}

.media-item img {
    transition: transform 0.3s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.pagination-link:hover {
    background: #f3f4f6;
    color: #374151;
}

.pagination-link.active {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

/* Media Grid Responsive */
@media (max-width: 640px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .media-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1281px) {
    .media-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* File Upload Drag & Drop */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.upload-area.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Image Preview */
.image-preview-container {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.05);
}

/* Media Actions */
.media-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-actions {
    opacity: 1;
}

.media-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-action-btn:hover {
    transform: scale(1.1);
}

.media-action-btn.copy {
    background: #3b82f6;
    color: white;
}

.media-action-btn.copy:hover {
    background: #2563eb;
}

.media-action-btn.delete {
    background: #ef4444;
    color: white;
}

.media-action-btn.delete:hover {
    background: #dc2626;
}

/* File Info */
.file-info {
    padding: 0.75rem;
    background: white;
}

.file-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading States */
.upload-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.upload-loading .loading {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

/* Success/Error States */
.upload-success {
    border-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
}

.upload-error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .admin-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .media-item {
        border: 2px solid #000;
    }
}

/* ==========================================
   SUPPORT ROBOT WIDGET
   ========================================== */

/* Main widget container */
.support-robot-widget {
    position: fixed; /* Fixed to viewport */
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Robot Container */
.robot-container {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}

.robot-container:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Robot Image */
.robot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    animation: robotBounce 2s ease-in-out infinite;
}

@keyframes robotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Cloud Speech Bubble */
.robot-speech-bubble {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 16px 32px 16px 24px;
    max-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: cloudFloat 3s ease-in-out infinite, cloudFadeIn 0.5s ease-out;
    z-index: 999;
    margin-bottom: 10px;
}

/* Close Bubble Button */
.close-bubble-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 1001;
}

.close-bubble-btn:hover {
    background: #f3f4f6;
    color: #ef4444;
    transform: scale(1.1);
}

/* Hidden bubble state */
.bubble-hidden {
    display: none !important;
}

/* Cloud floating animation */
@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes cloudFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Message text inside cloud */
#robot-message {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Support Menu */
.support-menu {
    position: fixed; /* Changed from absolute to fixed for proper positioning */
    bottom: 120px; /* Position above the robot */
    right: 30px; /* Align with widget */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 8px;
    min-width: 220px;
    animation: menuSlideUp 0.3s ease-out;
    z-index: 1000;
}

@keyframes menuSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Menu Items */
.support-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    cursor: pointer;
    margin-bottom: 6px;
}

.support-menu-item:last-child {
    margin-bottom: 0;
}

.support-menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* WhatsApp button */
.support-menu-item.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

.support-menu-item.whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Tutorial button */
.support-menu-item.tutorial {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.support-menu-item.tutorial:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Support button */
.support-menu-item.support {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.support-menu-item.support:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Feedback button */
.support-menu-item.feedback {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.support-menu-item.feedback:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Responsive Design for Support Robot */
@media (max-width: 768px) {
    /* Hide speech bubble on mobile */
    .robot-speech-bubble {
        display: none;
    }
    
    /* Make robot smaller on mobile */
    .robot-container {
        width: 60px;
        height: 60px;
    }
    
    /* Adjust widget position */
    .support-robot-widget {
        bottom: 20px;
        right: 20px;
    }
    
    /* Adjust menu width */
    .support-menu {
        min-width: 200px;
        bottom: 90px; /* Adjusted for smaller robot */
        right: 20px; /* Align with mobile positioning */
    }
}

@media (max-width: 480px) {
    /* Even smaller on very small screens */
    .robot-container {
        width: 50px;
        height: 50px;
    }
    
    .support-robot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .support-menu {
        bottom: 60px;
        min-width: 180px;
    }
    
    .support-menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Hide helper class */
.hidden {
    display: none !important;
}

/* ================================
   SEO WIZARD STYLES
   ================================ */

/* Wizard Modal Enhancements */
#seoWizardModal .border-b {
    border-bottom-width: 2px;
}

/* Progress Bar Animation */
#wizard-progress-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #9333ea 0%, #a855f7 100%);
}

/* Wizard Item Badge */
#wizard-item-type-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Keyboard Shortcut Overlay */
#keyboardShortcutsOverlay kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid #d1d5db;
}

/* Wizard Button States */
#wizard-btn-previous:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Smooth transitions for wizard content */
#seoWizardForm input,
#seoWizardForm textarea {
    transition: border-color 0.2s ease;
}

#seoWizardForm input:focus,
#seoWizardForm textarea:focus {
    border-color: #9333ea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Wizard Skip Button Animation */
button[onclick="wizardSkip()"] {
    transition: all 0.2s ease;
}

button[onclick="wizardSkip()"]:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

/* Item counter pulse effect */
@keyframes wizard-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#wizard-skipped-count {
    animation: wizard-pulse 2s ease-in-out infinite;
}

/* Wizard modal fade in */
@keyframes wizard-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#seoWizardModal > div {
    animation: wizard-fade-in 0.2s ease-out;
}

/* Character count warning - red color with pulse animation */
.text-red-600.font-medium {
    animation: wizard-pulse 1.5s ease-in-out infinite;
}

/* ========================================
   STICKY BOTTOM SAVE BAR - Global Component
   Used in: Security Center, Settings, Weather, Profile, Breadcrumbs, Sliders
   Version: 1.0.0
   ======================================== */

.sticky-save-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.sticky-save-bar-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    width: 100%;
    max-width: 80%;
}

.sticky-save-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-save-bar-info {
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    align-items: center;
}

.sticky-save-bar-info i {
    margin-right: 0.5rem;
}

/* Support for multiple buttons (e.g., breadcrumbs with Reset + Save) */
.sticky-save-bar-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive behavior for mobile devices */
@media (max-width: 768px) {
    .sticky-save-bar-container {
        max-width: 95%;
        padding: 0.75rem;
    }
    
    .sticky-save-bar-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .sticky-save-bar-info {
        justify-content: center;
    }
    
    .sticky-save-bar-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* ========================================
   TOGGLE SWITCH COMPONENT - Global Component
   Used in: Security Center, Settings, Weather, Profile
   Version: 1.0.0
   ======================================== */

/* Toggle Switch Container */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle Slider (Background) */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

/* Toggle Slider Circle (Knob) */
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* Checked State - Blue Background */
input:checked + .toggle-slider {
    background-color: #2563EB;
}

/* Checked State - Move Circle to Right */
input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ========================================
   PROFILE PAGE STYLES
   Version: 1.0.0
   ======================================== */

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 16px;
}

.profile-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.info-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.preference-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.preference-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preference-toggle-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.preference-toggle-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.preference-toggle-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

/* ========================================
   NATIVE LANGUAGE SWITCHER
   ======================================== */

/* Native CSS Language Switcher Dropdown */
.language-switcher-native {
    position: relative;
}

/* Show dropdown on hover and focus */
.language-switcher-native:hover .language-dropdown,
.language-switcher-native:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Dropdown transitions */
.language-dropdown {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

/* Prevent dropdown from closing when hovering over it */
.language-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Focus styles for accessibility */
.language-switcher-native div[tabindex="0"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Enhanced hover effects for language options */
.language-dropdown a:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Active language styling */
.language-dropdown a.bg-blue-50 {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

/* Smooth chevron rotation */
.language-switcher-native:hover .fa-chevron-down,
.language-switcher-native:focus-within .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.2s ease-in-out;
}

.language-switcher-native .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}

/* ========================================
   ADMIN HEADER BANNER
   ======================================== */

.admin-header-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 1px solid #bfdbfe;
    padding: 12px 0;
    z-index: 40;
    position: relative;
}

.admin-header-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-header-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header-banner-icon i {
    font-size: 20px;
    color: var(--brand-primary, #3b82f6);
}

.admin-header-banner-description {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.admin-header-banner-description p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1f2937);
    line-height: 1.5;
}

.admin-header-banner-cta {
    flex-shrink: 0;
}

.admin-header-banner-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--brand-primary, #3b82f6);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.admin-header-banner-button:hover {
    background: var(--brand-primary-dark, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-header-banner-button:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-header-banner {
        padding: 10px 0;
    }
    
    .admin-header-banner-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .admin-header-banner-icon {
        order: 1;
    }
    
    .admin-header-banner-description {
        order: 2;
        min-width: auto;
        width: 100%;
    }
    
    .admin-header-banner-description p {
        font-size: 13px;
    }
    
    .admin-header-banner-cta {
        order: 3;
        width: 100%;
    }
    
    .admin-header-banner-button {
        width: 100%;
        justify-content: center;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .admin-header-banner {
        padding: 8px 0;
    }
    
    .admin-header-banner-icon i {
        font-size: 18px;
    }
    
    .admin-header-banner-description p {
        font-size: 12px;
    }
    
    .admin-header-banner-button {
        padding: 6px 16px;
        font-size: 13px;
    }
}