/* ============================================
   AZRS CORP - COMPLETE QUICKFIX TOOLS CSS
   Modern, Clean & Fully Responsive
   Version: 3.0 - Refined Edition
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors - Modern Blue */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;

    /* Accent Colors - Teal */
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-light: #14b8a6;

    /* Status Colors - Fresh */
    --success: #10b981;
    --success-dark: #059669;
    --error: #ef4444;
    --error-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --info: #06b6d4;

    /* Neutral Colors - Refined */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    /* Shadows - Subtle & Elegant */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.01);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.1);

    /* Border Radius - Consistent */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions - Smooth */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Font Sizes - Responsive */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   TYPOGRAPHY - Clean & Readable
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); letter-spacing: -0.01em; }
h3 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-sm); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}
a:hover {
    color: var(--primary-dark);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

main {
    flex: 1;
    padding: var(--space-6) 0;
}

/* ============================================
   NAVIGATION - Clean & Modern
   ============================================ */
.azrs-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-primary);
}
.logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}
.azrs-logo {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.azrs-nav-container {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.azrs-nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
}

.azrs-nav-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.azrs-nav-links a i {
    font-size: 1.1rem;
    opacity: 0.8;
}
.azrs-nav-links a:hover,
.azrs-nav-links a.active {
    background: var(--bg-tertiary);
    color: var(--primary);
}
.azrs-nav-links a.active {
    background: var(--primary);
    color: white;
}
.azrs-nav-links a.active i {
    opacity: 1;
}

/* Hamburger Menu */
.azrs-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
}
.azrs-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.azrs-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.azrs-hamburger.active span:nth-child(2) { opacity: 0; }
.azrs-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   BUTTONS - Modern & Consistent
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}
.btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.btn-success:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
}
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-xs);
}
.btn-icon {
    padding: var(--space-2);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

/* ============================================
   FORMS - Clean & Accessible
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}
.form-label.required::after {
    content: " *";
    color: var(--error);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 1.2rem;
    padding-right: var(--space-10);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox & Radio */
.checkbox-wrapper,
.radio-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    margin-bottom: var(--space-2);
}
input[type="checkbox"],
input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
}

/* File Input */
input[type="file"] {
    padding: var(--space-2);
}
input[type="file"]::file-selector-button {
    padding: var(--space-2) var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-right: var(--space-3);
    cursor: pointer;
    transition: var(--transition);
}
input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* ============================================
   CARDS - Elevated & Soft
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}
.card-body {
    color: var(--text-secondary);
}
.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ============================================
   ALERTS - Clear & Friendly
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    border-left: 4px solid transparent;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}
.alert i { font-size: var(--fs-xl); }
.alert-success { border-left-color: var(--success); color: var(--success-dark); }
.alert-error { border-left-color: var(--error); color: var(--error-dark); }
.alert-warning { border-left-color: var(--warning); color: var(--warning-dark); }
.alert-info { border-left-color: var(--info); color: var(--info-dark); }

/* ============================================
   BADGES - Modern, Professional & Eye-catching
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.01em;
    text-transform: none;
    border: 1px solid transparent;
}

/* Solid Badges - Gradient Backgrounds */
.badge-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.badge-light {
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.badge-dark {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    box-shadow: 0 4px 10px rgba(31, 41, 55, 0.3);
}

/* Outline Badges - Clean & Sharp */
.badge-outline-primary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: none;
}

.badge-outline-secondary {
    background: transparent;
    color: #0d9488;
    border: 2px solid #0d9488;
}

.badge-outline-success {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.badge-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.badge-outline-warning {
    background: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.badge-outline-info {
    background: transparent;
    color: #06b6d4;
    border: 2px solid #06b6d4;
}

.badge-outline-light {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.badge-outline-dark {
    background: transparent;
    color: #1f2937;
    border: 2px solid #1f2937;
}

/* Soft Badges - Subtle Background */
.badge-soft-primary {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(4px);
}

.badge-soft-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-soft-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-soft-info {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Pill Badges - Extra Rounded */
.badge-pill {
    border-radius: 9999px;
    padding: 0.375rem 1.25rem;
}

/* Square Badges - Less Rounded */
.badge-square {
    border-radius: 6px;
    padding: 0.375rem 0.875rem;
}

/* Badge Sizes */
.badge-sm {
    padding: 0.25rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.25rem;
}

.badge-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.625rem;
}

.badge-xl {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    gap: 0.75rem;
}

/* Badges with Icons */
.badge i,
.badge svg {
    font-size: 1.1em;
    line-height: 1;
}

.badge-sm i {
    font-size: 0.9rem;
}

.badge-lg i {
    font-size: 1.2rem;
}

.badge-xl i {
    font-size: 1.4rem;
}

/* Interactive Badges */
.badge-clickable {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.badge-clickable:active {
    transform: translateY(0);
}

/* Badge Groups */
.badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-group .badge {
    margin: 0;
}

/* Status Badges - For Live Indicators */
.badge-status {
    position: relative;
    padding-left: 1.75rem;
}

.badge-status::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.badge-status-success::before {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.badge-status-warning::before {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.badge-status-danger::before {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Tool Badges - Special for Tool Hero */
.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-badge i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.tool-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.tool-badge:active {
    transform: translateY(0);
}

/* Difficulty Badges */
.badge-difficulty-easy {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-difficulty-medium {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-difficulty-hard {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Version Badge */
.badge-version {
    background: #1f2937;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid #374151;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Count Badge (like notification badges) */
.badge-count {
    background: #ef4444;
    color: white;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

/* Responsive Badges */
@media (max-width: 768px) {
    .badge {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }

    .badge-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.9375rem;
    }

    .tool-badge {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }

    .tool-badge i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .badge {
        padding: 0.3125rem 0.875rem;
        font-size: 0.75rem;
    }

    .tool-badges {
        gap: 0.5rem;
    }

    .tool-badge {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .badge-group {
        gap: 0.375rem;
    }
}

/* Print Styles */
@media print {
    .badge {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .badge-light {
        background: #374151;
        color: #f3f4f6;
        border-color: #4b5563;
    }

    .badge-outline-light {
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .badge-soft-primary {
        background: rgba(37, 99, 235, 0.2);
    }

    .badge-soft-success {
        background: rgba(16, 185, 129, 0.2);
    }
}
/* ============================================
   TABLES - Clean
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}
thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-light);
}
th {
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}
tr:last-child td { border-bottom: none; }

/* ============================================
   TOOL HERO - Engaging
   ============================================ */
.tool-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: var(--space-12) var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.tool-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.tool-hero-content {
    position: relative;
    z-index: 2;
}
.tool-hero h1 {
    color: white;
    margin-bottom: var(--space-3);
    font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
}
.tool-hero p {
    color: rgba(255,255,255,0.9);
    font-size: var(--fs-lg);
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

/* ============================================
   UPLOAD AREA - Inviting
   ============================================ */
.upload-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-8);
}
.upload-section h2 {
    text-align: center;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}
.upload-area {
    border: 3px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
    transform: scale(1.01);
}
.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: var(--space-4);
    opacity: 0.8;
}
.upload-area h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2);
}
.upload-area p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}
.file-formats {
    font-size: var(--fs-sm);
    color: var(--text-light);
}
.upload-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-top: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: var(--transition);
}
.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.file-input { display: none; }

/* Image Preview */
.image-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.preview-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
    border: 1px solid var(--border-light);
}
.preview-box h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.image-container {
    width: 100%;
    min-height: 250px;
    border-radius: var(--radius);
    background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 50% / 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.image-container img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.process-btn {
    width: 100%;
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: var(--transition);
}
.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.process-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   PROCESSING OVERLAY
   ============================================ */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-4);
}
.processing-overlay.active { display: flex; }
.processing-content {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-4);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   RESULT SECTION
   ============================================ */
.result-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-8);
    display: none;
}
.result-section.active { display: block; animation: fadeInUp 0.4s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border-light);
}
.result-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}
.comparison-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
    border: 1px solid var(--border-light);
}
.comparison-box h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.comparison-image {
    width: 100%;
    min-height: 300px;
    background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 50% / 20px 20px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comparison-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.result-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.download-btn, .new-upload-btn {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   FEATURES & FAQ - Clean Grid
   ============================================ */
.features-section,
.faq-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-8);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}
.feature-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--text-muted); margin: 0; }

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4) 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}
.faq-question i { color: var(--primary); }
.faq-answer {
    padding-left: var(--space-8);
    margin-top: var(--space-3);
    color: var(--text-secondary);
    display: none;
}
.faq-item.active .faq-answer { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.azrs-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-8) 0 var(--space-4);
    margin-top: var(--space-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}
.footer-column h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-4);
}
.footer-column a {
    display: block;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.footer-column a:hover { color: var(--primary); }
.social-icons {
    display: flex;
    gap: var(--space-2);
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--primary);
    color: white;
}
.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
    .image-preview-grid,
    .image-comparison {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .azrs-hamburger { display: flex; }
    .azrs-nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-light);
        display: none;
    }
    .azrs-nav-container.active { display: flex; }
    .azrs-nav-links {
        flex-direction: column;
        width: 100%;
        gap: var(--space-2);
    }
    .azrs-nav-links a {
        width: 100%;
        justify-content: center;
    }

    .tool-hero { padding: var(--space-8) var(--space-4); }
    .upload-section,
    .result-section,
    .features-section,
    .faq-section { padding: var(--space-6); }

    .result-actions { flex-direction: column; }
    .download-btn, .new-upload-btn { width: 100%; }
}

@media (max-width: 480px) {
    .tool-badges { gap: var(--space-2); }
    .tool-badge { font-size: var(--fs-xs); padding: var(--space-1) var(--space-2); }
    .upload-icon { font-size: 3rem; }
    .btn-lg { padding: var(--space-3) var(--space-6); }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.p-4 { padding: var(--space-4); }
.d-none { display: none !important; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-100 { width: 100%; }

/* ============================================
   END OF AZRS QUICKFIX CSS
   ============================================ */