/* ============================================
   CCB Corporate Design System
   Caisse des Compensations du Bâtiment - Genève
   ============================================ */

:root {
    --primary-orange: #FF6900;
    --white: #FFFFFF;
    --dark: #2C3E50;
    --light-gray: #ECF0F1;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --blueprint-blue: #0066cc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.corporate-design-page {
    width: 100%;
}

/* ============================================
   Utility Classes - Classes Communes
   ============================================ */

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

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

.text-orange { color: var(--primary-orange); }
.text-dark { color: var(--dark); }
.text-gray { color: #666; }
.text-white { color: var(--white); }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Border radius utilities */
.rounded-sm { border-radius: 0.25rem; }
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

/* Background utilities */
.bg-white { background: var(--white); }
.bg-gray { background: var(--light-gray); }
.bg-orange { background: var(--primary-orange); }

/* Section explanation box */
.section-explanation {
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.05), rgba(255, 105, 0, 0.02));
    border-left: 4px solid var(--primary-orange);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0 3rem;
}

.section-explanation h3 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-explanation p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.section-explanation ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.section-explanation li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--dark);
}

.section-explanation li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.code-example {
    background: #2C3E50;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Hero Section with Blueprint
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 100%);
    overflow: hidden;
}

.blueprint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    animation: blueprintMove 60s linear infinite;
    opacity: 0.3;
}

@keyframes blueprintMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.logo-hexagon {
    margin: 0 auto 2rem;
}

.hexagon-shape {
    position: relative;
    width: 150px;
    height: 180px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.hexagon-shape svg {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hexagon-shape svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(255, 105, 0, 0.5));
}

.hex-fill {
    fill: var(--primary-orange);
    transition: all 0.3s ease;
}

.hex-stroke {
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawHexagon 2s ease-out forwards;
}

@keyframes drawHexagon {
    to {
        stroke-dashoffset: 0;
    }
}

.hex-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 2px;
}

/* ===================
   DEVICE MOCKUPS - STANDARDIZED COMPONENTS
=================== */

/* Base Mockup Styles */
.mockups-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 4rem;
    margin: 4rem 0;
    justify-items: center;
    align-items: start;
}

.mockup-example {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mockup-example h4 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.mockup-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.device-mockup {
    display: inline-block;
    margin: 0 auto;
}

/* iPhone Mockup */
.device-iphone {
    position: relative;
}

.device-frame {
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #2a2a2a,
        0 0 0 12px #1a1a1a,
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 3px rgba(255, 255, 255, 0.1);
    position: relative;
}

.device-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.device-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #2a2a2a;
    border-radius: 3px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

/* MacBook Mockup */
.device-macbook {
    position: relative;
    perspective: 1000px;
}

.macbook-screen {
    width: 800px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 8px 8px 8px 8px;
    box-shadow: 
        0 0 0 2px #2a2a2a,
        0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0 auto;
}

.macbook-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 26px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.macbook-notch::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2a2a2a;
    border-radius: 50%;
}

.macbook-content {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.macbook-base {
    width: 820px;
    height: 8px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.macbook-footer {
    width: 180px;
    height: 4px;
    background: #c0c0c0;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Demo Content Styles */
.demo-content {
    height: 100%;
    overflow-y: auto;
}

.demo-content::-webkit-scrollbar {
    width: 6px;
}

.demo-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.demo-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.demo-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Usage Guide */
.usage-guide {
    animation: fadeInUp 0.6s ease;
}

.usage-examples {
    position: relative;
}

.usage-item pre {
    margin: 0;
    font-family: 'Courier New', monospace;
}

.usage-item code {
    color: #2C3E50;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin: -1rem 0 2rem;
}

/* Device Center Alignment */
.nav-demo-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5rem 0;
}

.nav-demo-container h4 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}


.mobile-nav-example {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-example h5 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Mockups */
@media (max-width: 1024px) {
    .mockups-showcase {
        grid-template-columns: 1fr;
    }
    
    .device-macbook .macbook-screen {
        width: 600px;
        height: 375px;
    }
    
    .device-macbook .macbook-base {
        width: 620px;
    }
}

@media (max-width: 768px) {
    .device-iphone .device-frame {
        width: 280px;
        height: 570px;
    }
    
    .device-macbook .macbook-screen {
        width: 100%;
        max-width: 500px;
        height: 312px;
    }
    
    .device-macbook .macbook-base {
        width: 100%;
        max-width: 520px;
    }
    
    .mockups-showcase {
        gap: 2rem;
    }
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(255, 105, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    transform: rotate(-45deg);
}

/* ============================================
   Section Styles
   ============================================ */

.design-section {
    padding: 5rem 0;
    position: relative;
}

.design-section.bg-light {
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 66px;
    background: var(--primary-orange);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    clip-path: polygon(50% 0%, 100% 20%, 100% 80%, 50% 100%, 0% 80%, 0% 20%);
}

/* ============================================
   Glass Morphism Cards
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(255, 105, 0, 0.08);
}

/* ============================================
   Color Palette
   ============================================ */

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.color-card {
    text-align: center;
}

.color-preview {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color-card:hover .color-preview {
    transform: scale(1.05);
}

.color-preview.primary-color {
    background: var(--primary-orange);
}

.color-preview.white-color {
    background: var(--white);
    border: 2px solid var(--light-gray);
}

.color-preview.dark-color {
    background: var(--dark);
}

.color-preview.light-color {
    background: var(--light-gray);
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin: 0.5rem 0;
}

.color-usage {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   Typography
   ============================================ */

.typography-showcase h1, 
.typography-showcase h2, 
.typography-showcase h3, 
.typography-showcase h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.display-1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.display-2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.display-3 {
    font-size: 2rem;
    font-weight: 600;
}

.display-4 {
    font-size: 1.5rem;
    font-weight: 600;
}

.body-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    margin: 1rem 0;
}

.body-regular {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    margin: 1rem 0;
}

.body-small {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin: 1rem 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.btn-primary:hover {
    background: #e55d00;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.25);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--dark);
}

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

.btn-hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    padding: 1rem 2.5rem;
    background: var(--primary-orange);
    color: var(--white);
}

.btn-icon-only {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    color: var(--primary-orange);
    background: rgba(255, 105, 0, 0.1);
}

.button-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.button-group h4 {
    width: 100%;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ============================================
   Forms
   ============================================ */

.forms-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.form-container,
.login-container {
    position: relative;
}

.modern-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark);
}

.form-input:hover {
    border-color: rgba(255, 105, 0, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23FF6900' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    font-weight: 500;
}

.form-select:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.08);
}

.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.15);
}

.form-select option {
    padding: 1.25rem 1rem;
    background: var(--white);
    color: var(--dark);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
}

.form-select option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.form-select option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.form-select option:hover,
.form-select option:checked {
    background: linear-gradient(135deg, var(--primary-orange), #ff8533);
    color: var(--white);
    font-weight: 600;
}

.form-select option:checked {
    background: #0066ff;
    color: var(--white);
}

.form-select option:disabled {
    color: #ccc;
    background: var(--light-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

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

.form-checkbox:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: var(--dark);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Range Slider Styles */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--light-gray);
    outline: none;
    padding: 0;
    margin: 1rem 0;
}

/* Webkit (Chrome, Safari, Edge) */
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.5);
}

.form-range::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

/* Firefox */
.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
    transition: all 0.3s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.5);
}

.form-range::-moz-range-thumb:active {
    transform: scale(0.95);
}

/* Firefox track */
.form-range::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--light-gray);
}

/* IE */
.form-range::-ms-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 0, 0.3);
}

.form-range::-ms-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.form-range::-ms-fill-lower {
    background: var(--primary-orange);
    border-radius: 5px;
}

.form-range::-ms-fill-upper {
    background: var(--light-gray);
    border-radius: 5px;
}

/* Focused state */
.form-range:focus {
    outline: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.2), 0 2px 8px rgba(255, 105, 0, 0.3);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.2), 0 2px 8px rgba(255, 105, 0, 0.3);
}

/* Disabled state */
.form-range:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-range:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
    background: #ccc;
}

.form-range:disabled::-moz-range-thumb {
    cursor: not-allowed;
    background: #ccc;
}

/* Range with value display */
.range-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.range-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.25rem 0.75rem;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

/* Login Form Specific */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-hexagon-small {
    position: relative;
    width: 80px;
    height: 96px;
    margin: 0 auto 1rem;
}

.logo-hexagon-small svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--primary-orange);
    filter: drop-shadow(0 4px 10px rgba(255, 105, 0, 0.3));
}

.logo-hexagon-small span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.forgot-password {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--light-gray);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: #666;
}

/* ============================================
   Cards
   ============================================ */

.cards-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.modern-card {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-gray);
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 0, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange), #ff8533);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
    display: inline-block;
}

.card-link:hover {
    gap: 0.5rem;
}

/* Glass Card Special */
.glass-card-special {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.blueprint-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 105, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 105, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-orange);
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* Hexagon Card */
.hexagon-card {
    background: linear-gradient(135deg, var(--primary-orange), #ff8533);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hex-background {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    opacity: 0.2;
}

.hex-background svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}

/* Data Card */
.data-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-danger {
    background: var(--danger);
    color: var(--white);
}

.badge-info {
    background: var(--info);
    color: var(--white);
}

.data-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), #ff8533);
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-success .progress-fill {
    background: linear-gradient(90deg, var(--success), #2ecc71);
}

.progress-warning .progress-fill {
    background: linear-gradient(90deg, var(--warning), #f1c40f);
}

/* ============================================
   Calendar
   ============================================ */

.calendar-container {
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--primary-orange);
    padding: 1rem 0;
    font-size: 0.875rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: var(--white);
    border: 1px solid var(--light-gray);
}

.calendar-day:hover {
    background: var(--light-gray);
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background: var(--white);
    transform: none;
}

.calendar-day.current {
    background: var(--primary-orange);
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.calendar-day.weekend {
    color: var(--primary-orange);
}

.calendar-day.event {
    position: relative;
}

.calendar-day.event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.current-dot {
    background: var(--primary-orange);
}

.event-dot {
    background: var(--primary-orange);
}

/* ============================================
   Navigation
   ============================================ */

.nav-showcase {
    margin-bottom: 4rem;
}

.nav-showcase:not(:first-of-type) {
    margin-top: 4rem;
}

.modern-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    color: var(--dark);
    font-size: 1.25rem;
}

.logo-hexagon-mini {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-hexagon-mini svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-orange);
}

/* Sidebar Menu */
.menu-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.sidebar-menu {
    min-height: 400px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

.sidebar-item svg {
    width: 24px;
    height: 24px;
}

.sidebar-item:hover {
    background: rgba(255, 105, 0, 0.1);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: var(--primary-orange);
    color: var(--white);
}

/* Dropdown */
.dropdown-showcase {
    position: relative;
}

.dropdown-menu {
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
}

.dropdown-item:hover {
    background: var(--light-gray);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 0.5rem 0;
}

/* ============================================
   Effects & Animations
   ============================================ */

.effects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.effect-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hover-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 0, 0.12);
}

.hover-glow {
    position: relative;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary-orange), #ff8533);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-glow:hover::before {
    opacity: 1;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.blueprint-card {
    background: linear-gradient(135deg, #1a2f4a, #0a1628);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.blueprint-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

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

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

.pulse-effect {
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   Icons & Badges
   ============================================ */

.icons-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.hex-icons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hex-icon {
    position: relative;
    width: 80px;
    height: 80px;
}

.hex-icon svg:first-child {
    width: 100%;
    height: 100%;
    fill: var(--primary-orange);
    filter: drop-shadow(0 4px 10px rgba(255, 105, 0, 0.3));
}

.icon-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================
   Loading & States
   ============================================ */

.states-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spinners {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    min-height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
}

.spinner-primary {
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-hexagon {
    position: relative;
    animation: spin 2s linear infinite;
}

.spinner-hexagon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary-orange);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 360;
    stroke-dashoffset: 0;
    animation: hexagonDash 1.5s ease-in-out infinite;
}

@keyframes hexagonDash {
    0% {
        stroke-dashoffset: 360;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -360;
    }
}

.spinner-dots {
    display: flex;
    gap: 0.5rem;
}

.spinner-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out both;
}

.spinner-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Alerts */
.alerts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Progress Bars */
.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */

.corporate-footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-hexagon {
    width: 60px;
    height: 72px;
    margin: 0 0 1rem 0;
}

.footer-brand .logo-hexagon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-orange);
}

.footer-brand .logo-hexagon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--white);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0.25rem 0;
    opacity: 0.8;
}

/* ============================================
   Navigation Tabs
   ============================================ */

.tabs-navigation {
    padding: 2rem;
}

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 105, 0, 0.2);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button svg {
    width: 20px;
    height: 20px;
}

.tab-button:hover {
    color: var(--primary-orange);
    background: rgba(255, 105, 0, 0.05);
}

.tab-button.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
    background: rgba(255, 105, 0, 0.05);
}

.tabs-content {
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

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

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.component-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 105, 0, 0.1);
    transition: all 0.3s ease;
}

.component-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.1);
}

.component-preview {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.1rem;
}

.component-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Colors Extended */
.colors-extended {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.color-extended {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.color-samples {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.color-sample {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.color-info p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.color-info code {
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-orange);
}

/* Color Usage Guide */
.color-usage-guide h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.usage-rules {
    display: grid;
    gap: 1rem;
}

.usage-rule {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.rule-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Typography Details */
.typography-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.font-specimen h4,
.typography-scale h4,
.typography-rules h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.font-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.font-stack {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.font-stack code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-orange);
    word-break: break-all;
}

.font-weights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weight-sample {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 1.1rem;
}

.scale-examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.scale-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.scale-text {
    color: var(--primary-orange);
    font-weight: 600;
}

.typography-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.typography-rules li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 105, 0, 0.1);
}

.typography-rules li:last-child {
    border-bottom: none;
}

.typography-rules strong {
    color: var(--primary-orange);
}

/* Forms Extended */
.forms-showcase-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-element-showcase h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.form-elements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-element {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.checkbox-element,
.radio-element {
    margin-top: 1rem;
}

.checkbox-container,
.radio-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark);
}

.checkbox-label,
.radio-label {
    cursor: pointer;
}

.form-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

.form-radio:checked + .radio-checkmark {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.form-radio:checked + .radio-checkmark:after {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Form Validation */
.validation-examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input.valid {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

.form-input.invalid {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

.validation-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.validation-message.success {
    color: var(--success);
}

.validation-message.error {
    color: var(--danger);
}

/* ============================================
   Icons Library
   ============================================ */

.icon-categories h4,
.badges-showcase h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.icon-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-category {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 105, 0, 0.1);
    transition: all 0.3s ease;
}

.icon-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6900, #FF8533);
    border-radius: 16px;
    color: white;
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

.icon-category h5 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.icon-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.icon-usage-examples {
    border-top: 1px solid rgba(255, 105, 0, 0.2);
    padding-top: 2rem;
}

.icon-usage-examples h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.usage-examples {
    display: grid;
    gap: 1.5rem;
}

.usage-example h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-orange);
    font-size: 1rem;
}

.usage-example pre {
    margin: 0;
}

/* ============================================
   Desktop Navigation Enhanced
   ============================================ */

.modern-nav-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-nav-enhanced .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-nav-enhanced .logo-hexagon-mini {
    width: 35px;
    height: 42px;
}

.modern-nav-enhanced .logo-hexagon-mini svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-orange);
}

.modern-nav-enhanced .nav-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.modern-nav-enhanced .nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-nav-enhanced .nav-links li {
    position: relative;
}

.modern-nav-enhanced .nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.2s ease;
    position: relative;
}

.modern-nav-enhanced .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.modern-nav-enhanced .nav-links a:hover {
    color: var(--primary-orange);
}

.modern-nav-enhanced .nav-links a:hover::after {
    width: 60%;
}

.modern-nav-enhanced .nav-links a.active {
    color: var(--primary-orange);
}

.modern-nav-enhanced .nav-links a.active::after {
    width: 60%;
}

.modern-nav-enhanced .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Dropdown in Nav */
.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.dropdown-item-nav:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item-nav:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item-nav:hover {
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary-orange);
}

.dropdown-item-nav i {
    font-size: 1.1rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 105, 0, 0.05);
    border: 1px solid rgba(255, 105, 0, 0.15);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: rgba(255, 105, 0, 0.1);
    border-color: rgba(255, 105, 0, 0.3);
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-menu-trigger span {
    font-weight: 600;
    color: var(--dark);
}

.user-menu-trigger i {
    font-size: 0.8rem;
    color: #666;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.user-dropdown-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-orange);
}

.user-dropdown-header strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.user-dropdown-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

.user-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary-orange);
}

.user-dropdown-item.danger {
    color: var(--danger);
}

.user-dropdown-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.user-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}

/* ============================================
   Mobile Navigation
   ============================================ */

.mobile-nav-showcase {
    margin: 5rem 0;
}

.mobile-nav-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 4rem;
    padding: 0 4rem;
}

.mobile-nav-example {
    flex: 0 0 auto;
    width: 380px;
    display: flex;
    margin-top: 4rem;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-example h5 {
    margin-bottom: 2.5rem;
    color: var(--dark);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Mobile Navigation Showcase - Uses standardized device-iphone component */
.mobile-header {
    background: linear-gradient(135deg, #FF6900, #FF8533);
    padding: 1rem;
    border-radius: 32px 32px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hamburger-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.mobile-logo .logo-hexagon-mini {
    width: 30px;
    height: 36px;
}

.mobile-logo .logo-hexagon-mini svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.mobile-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 36px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

.user-role {
    font-size: 0.875rem;
    color: #666;
}

.close-menu-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
}

.mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary-orange);
}

.mobile-nav-link.active svg {
    color: var(--primary-orange);
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.mobile-content {
    background: #f8f9fa;
    border-radius: 0 0 32px 32px;
    height: 560px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.content-header {
    padding: 1.5rem 1rem 1rem;
}

.content-header h6 {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.content-body {
    flex: 1;
    padding: 0 1rem 1rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6900, #FF8533);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.service-desc {
    font-size: 0.875rem;
    color: #666;
}

.service-action {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-size: 1.25rem;
    cursor: pointer;
}

.bottom-tabs {
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    padding: 0.5rem;
    border-radius: 0 0 32px 32px;
    position: relative;
    z-index: 2;
}

.bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.bottom-tab:hover,
.bottom-tab.active {
    color: var(--primary-orange);
}

.bottom-tab.active svg {
    color: var(--primary-orange);
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 16px;
    text-align: center;
}

/* ============================================
   Icons Library - Enhanced
   ============================================ */

.icons-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 105, 0, 0.2);
}

.intro-header i {
    font-size: 2rem;
    color: var(--primary-orange);
}

.intro-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.4rem;
}

.feature-list {
    display: grid;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.1rem;
}

.feature-item span {
    color: #666;
    font-size: 0.95rem;
}

.installation-method {
    margin-bottom: 1.5rem;
}

.installation-method h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.installation-method h4 i {
    color: var(--primary-orange);
}

.installation-method p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.installation-method code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-orange);
    font-size: 0.85rem;
}

/* Usage Examples Grid */
.usage-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.usage-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 105, 0, 0.1);
}

.usage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.usage-number {
    width: 36px;
    height: 36px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.usage-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1.05rem;
}

.usage-card pre {
    background: #2C3E50;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.usage-card pre code {
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.usage-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Category Tabs */
.icon-categories-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 105, 0, 0.2);
    border-radius: 12px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab i {
    font-size: 1.1rem;
}

.category-tab:hover {
    background: rgba(255, 105, 0, 0.1);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

/* Category Content */
.icon-categories-content {
    position: relative;
    min-height: 300px;
}

.category-content {
    display: none;
    animation: fadeInCategory 0.4s ease-out;
}

.category-content.active {
    display: block;
}

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

/* Enhanced Icon Grid */
.icon-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.icon-item-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid rgba(255, 105, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-item-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.2);
    border-color: var(--primary-orange);
}

.icon-item-enhanced i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.icon-item-enhanced:hover i {
    transform: scale(1.1);
}

.icon-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    width: 100%;
    font-weight: 600;
}

.icon-desc {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

/* ============================================
   Badges
   ============================================ */

.badges-showcase {
    padding: 2rem;
}

.badge-group {
    margin-bottom: 2rem;
}

.badge-group:last-child {
    margin-bottom: 0;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.badge svg {
    flex-shrink: 0;
}

.badge-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: #f59e0b;
    color: var(--white);
}

.badge-danger {
    background: var(--danger);
    color: var(--white);
}

.badge-info {
    background: var(--info);
    color: var(--white);
}

.badge-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
}

.badge-md {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Complete Design System Guide
   ============================================ */

.complete-guide {
    display: grid;
    gap: 2rem;
}

.system-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 105, 0, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 105, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 600;
}

.implementation-steps {
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.components-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.component-category h4 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.component-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-category li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.practice-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 105, 0, 0.1);
}

.practice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.practice-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
    font-size: 1rem;
}

.practice-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.resource-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.resource-item strong {
    color: var(--dark);
}

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   Images & Contenus
   ============================================ */

/* Images responsives de base */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-full {
    width: 100%;
    height: auto;
    display: block;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Images avec styles */
.img-rounded {
    border-radius: 12px;
    overflow: hidden;
}

.img-circle {
    border-radius: 50%;
    overflow: hidden;
}

.img-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.img-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.img-shadow-lg {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.img-border {
    border: 3px solid var(--primary-orange);
}

/* Image avec overlay */
.img-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-overlay-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
}

.img-overlay-container:hover .img-overlay {
    opacity: 1;
}

.img-overlay-container:hover img {
    transform: scale(1.05);
}

/* Grids de contenu */
.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.content-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.content-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Layout image + texte */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-split.reverse {
    direction: rtl;
}

.content-split.reverse > * {
    direction: ltr;
}

/* Card avec image */
.image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 0, 0.08);
}

.image-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-card-image img {
    transform: scale(1.05);
}

.image-card-content {
    padding: 1.5rem;
}

.image-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.image-card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Galerie d'images */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Hero avec image de fond */
.hero-image-text {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-text img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-image-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.8), rgba(44, 62, 80, 0.8));
    z-index: 1;
}

.hero-image-text .content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   Heroicons Styles
   ============================================ */

.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-xl {
    width: 3rem;
    height: 3rem;
}

.icon-orange {
    color: var(--primary-orange);
}

.icon-white {
    color: white;
}

.icon-dark {
    color: var(--dark);
}

.icon-gray {
    color: #6B7280;
}

.icon-hover {
    transition: transform 0.2s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
}

.icon-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   Layout & Images Section
   ============================================ */

/* Content Grids */
.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.content-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Content Split (Image + Text) */
.content-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.content-split.reverse {
    direction: rtl;
}

.content-split.reverse > * {
    direction: ltr;
}

/* Image Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-full {
    width: 100%;
    height: auto;
    display: block;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-rounded {
    border-radius: 12px;
}

.img-circle {
    border-radius: 50%;
}

.img-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.img-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.img-border {
    border: 3px solid var(--primary-orange);
}

/* Image Cards */
.image-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.image-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-card-image img {
    transform: scale(1.05);
}

.image-card-content {
    padding: 1.5rem;
}

.image-card-title {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.image-card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link i {
    font-size: 0.875rem;
}

/* Responsive adjustments for layout */
@media (max-width: 768px) {
    .content-grid-2,
    .content-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-split.reverse {
        direction: ltr;
    }
}

/* ============================================
   Charts Showcase
   ============================================ */

.charts-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.chart-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.chart-container h4 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-container h4 i {
    color: var(--primary-orange);
}

.chart-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.chart-container canvas {
    flex: 1;
    max-height: 300px;
}

.chart-code-toggle {
    margin-top: 1.5rem;
    text-align: center;
}

.chart-code-toggle .btn {
    transition: all 0.3s ease;
}

.chart-code-toggle .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First Approach
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .cards-showcase,
    .effects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .title-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Formulaires en colonne simple */
    .forms-showcase {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Navigation mobile */
    .modern-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        background: var(--light-gray);
        border-radius: 8px;
        text-align: center;
    }

    /* Cards en colonne simple */
    .color-grid,
    .cards-showcase,
    .effects-showcase,
    .menu-showcase,
    .icons-showcase,
    .states-showcase,
    .content-grid-2,
    .content-grid-3,
    .content-grid-4,
    .gallery {
        grid-template-columns: 1fr;
    }

    /* Images et contenus */
    .content-split {
        grid-template-columns: 1fr;
    }

    .content-split.reverse {
        direction: ltr;
    }

    .image-card-image {
        height: 180px;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-info {
        text-align: center;
    }

    /* Calendrier mobile */
    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.875rem;
    }

    /* Menu sidebar devient horizontal */
    .sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .design-section {
        padding: 3rem 0;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Hexagone logo plus petit */
    .hexagon-shape {
        width: 100px;
        height: 100px;
    }

    /* Boutons pleine largeur */
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group .btn {
        width: 100%;
    }

    /* Cards avec moins de padding */
    .glass-card,
    .modern-card,
    .card {
        padding: 1.5rem;
    }

    /* Typographie réduite */
    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 1.25rem;
    }

    /* Progress bars */
    .progress-label {
        font-size: 0.8rem;
    }

    /* Spinners plus petits */
    .spinner {
        width: 30px;
        height: 30px;
    }

    /* Badges plus petits */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Mobile Small (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .design-section {
        padding: 2rem 0;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .title-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    /* Hero section réduit */
    .hero-section {
        min-height: 80vh;
    }

    .hexagon-shape {
        width: 80px;
        height: 80px;
    }

    .hex-text {
        font-size: 1.5rem;
    }

    /* Formulaires compacts */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Calendrier compact */
    .calendar-day {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    /* Sidebar en grille */
    .sidebar-item {
        flex: 1 1 100%;
    }

    /* Cards très compactes */
    .card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 25px;
        height: 25px;
    }

    /* Alerts compactes */
    .alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .alert svg {
        width: 20px;
        height: 20px;
    }

    /* Hex icons plus petits */
    .hex-icon {
        width: 60px;
        height: 60px;
    }

    /* Footer compact */
    .corporate-footer {
        padding: 2rem 0 1rem;
    }

    .footer-brand .logo-hexagon {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Extra Small (< 360px) */
@media (max-width: 360px) {
    .main-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .form-input {
        padding: 0.6rem;
    }
}

