/* WebApp Builder Styles - IT Live */
/* Clean, formatted CSS for proper rendering */
/* Higher specificity rules to override inline styles */

/* CSS Reset and Override */
.webapp-voorbeelden * {
    box-sizing: border-box;
}

/* Override inline styles with !important where needed */
.webapp-voorbeelden .glass-morphism {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
}

.webapp-voorbeelden h3 {
    color: white !important;
    margin-bottom: 1rem !important;
}

.webapp-voorbeelden .webapp-carousel-hint,
.webapp-voorbeelden .webapp-carousel-hint-2 {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.35rem !important;
}

/* Main Layout and Container */
main.main {
    padding: 2rem 0;
    min-height: 100vh;
}

.content-wrap {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0d9488 50%, #1e293b 75%, #020617 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

/* Main Layout */
.webapp-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .webapp-page-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 720px;
        margin: 0 auto;
    }
    
    .webapp-voorbeelden-carousel-wrap {
        min-height: 200px;
    }
}

/* Hero Section */
.webapp-hero-section {
    width: 100%;
    grid-column: 1 / -1;
}

.webapp-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.webapp-back-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Main Container with Glassmorphism */
.webapp-voorbeelden {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.webapp-voorbeelden h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.webapp-voorbeelden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Carousel */
.webapp-voorbeelden-carousel-wrap {
    position: relative;
    margin: 0 -0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.5rem 0;
    scroll-snap-type: x proximity;
    min-height: 160px;
}

.webapp-voorbeelden-carousel-wrap::-webkit-scrollbar {
    height: 6px;
}

.webapp-voorbeelden-carousel-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.webapp-voorbeelden-carousel-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.webapp-voorbeelden-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: max-content;
    padding: 0 0.25rem;
}

.webapp-voorbeelden-track .webapp-voorbeeld-kaart {
    scroll-snap-align: start;
}

/* Main Card Styles - Higher Specificity */
.webapp-voorbeelden .webapp-voorbeelden-track .webapp-voorbeeld-kaart,
.webapp-voorbeelden-grid .webapp-voorbeeld-kaart {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 300px;
    overflow: visible;
}

.webapp-voorbeelden .webapp-voorbeelden-track .webapp-voorbeeld-kaart:hover,
.webapp-voorbeelden-grid .webapp-voorbeeld-kaart:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.webapp-voorbeelden .webapp-voorbeelden-track .webapp-voorbeeld-kaart .cat,
.webapp-voorbeelden-grid .webapp-voorbeeld-kaart .cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: visible;
}

.webapp-voorbeelden .webapp-voorbeelden-track .webapp-voorbeeld-kaart .tit,
.webapp-voorbeelden-grid .webapp-voorbeeld-kaart .tit {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    overflow: visible;
    word-wrap: break-word;
}

.webapp-voorbeelden .webapp-voorbeelden-track .webapp-voorbeeld-kaart .desc,
.webapp-voorbeelden-grid .webapp-voorbeeld-kaart .desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
    flex: 1;
    overflow: visible;
    min-height: 2.8em;
    word-wrap: break-word;
}

/* Small Module Cards - Dark Theme Fix */
.webapp-voorbeeld-kaart {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 300px;
    overflow: visible;
    color: white !important;
}

.webapp-voorbeeld-kaart:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.webapp-voorbeeld-kaart .cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: visible;
}

.webapp-voorbeeld-kaart .tit {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    overflow: visible;
    word-wrap: break-word;
}

.webapp-voorbeeld-kaart .desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
    flex: 1;
    overflow: visible;
    min-height: 2.8em;
    word-wrap: break-word;
}

.webapp-voorbeelden-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.webapp-voorbeelden-section {
    width: 100%;
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

/* Enhanced Cards Layout Fix */
.example-card-enhanced {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.example-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-card-enhanced:hover::before {
    opacity: 1;
}

.example-card-enhanced:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    transition: transform 0.3s ease;
}

.example-card-enhanced:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488, #10b981);
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    font-size: 0.8rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.time-estimate {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn-select {
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-select:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

/* Chat Section */
.webapp-chat-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.webapp-chat-messages {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.webapp-chat-input {
    display: flex;
    gap: 1rem;
}

.webapp-chat-input input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.webapp-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-send {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section - Higher Specificity */
section.webapp-hero-section .hero-enhanced {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

section.webapp-hero-section .hero-enhanced.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out, titleGlow 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

section.webapp-hero-section .hero-enhanced .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.2s both;
    font-weight: 400;
}

section.webapp-hero-section .hero-enhanced .hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: slideUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

section.webapp-hero-section .hero-enhanced .hero-stats .hero-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

section.webapp-hero-section .hero-enhanced .hero-stats .hero-stat:hover {
    transform: translateY(-5px) scale(1.05);
}

section.webapp-hero-section .hero-enhanced .hero-stats .hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    background: linear-gradient(135deg, #fbbf24, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

section.webapp-hero-section .hero-enhanced .hero-stats .hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Hero Section */
.hero-enhanced {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out, titleGlow 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(251, 191, 36, 0.2); }
    50% { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 80px rgba(251, 191, 36, 0.4); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.2s both;
    font-weight: 400;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: slideUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px) scale(1.05);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    background: linear-gradient(135deg, #fbbf24, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .webapp-page-layout {
        padding: 0 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .webapp-voorbeeld-kaart {
        min-width: 250px;
        max-width: 280px;
    }
    
    .example-card-enhanced {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Container */
.progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 400px;
    display: none;
}

.progress-container.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

/* Navigation Links - Dark Theme */
.links {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.links a:hover {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

/* Back to Links Styling */
.webapp-back-to-links {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.webapp-back-to-chat {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.webapp-back-to-chat:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* Demo Popup */
.demo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.demo-popup-overlay[aria-hidden="false"] {
    display: flex;
}

.demo-popup {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.demo-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.demo-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.demo-popup-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.demo-popup-iframe-wrap {
    position: relative;
    height: 500px;
}

.demo-popup-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.demo-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.demo-popup-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.demo-popup-btns {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-close {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-idee {
    background: linear-gradient(135deg, #10b981, #0d9488);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-idee:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
