/* ============================================
   KMSoft Arculat - Alap CSS (base.css)
   Közös elemek minden témához
   ============================================ */

/* CSS Reset és alapbeállítások */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipográfia alapok */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Témaváltó
   ============================================ */
.theme-switcher {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.theme-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.theme-btn.active {
    transform: scale(1.1);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Navigáció
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.2s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 600 !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
}

/* ============================================
   Hero szekció
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Hero vizuális elem (app preview) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.app-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-dots {
    display: flex;
    gap: 6px;
}

.app-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.app-dots span:nth-child(1) { background: #ff5f57; }
.app-dots span:nth-child(2) { background: #ffbd2e; }
.app-dots span:nth-child(3) { background: #28ca41; }

.app-title {
    font-size: 0.75rem;
    opacity: 0.7;
}

.app-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 300px;
}

.app-sidebar {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-main {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-card {
    padding: 1rem;
    border-radius: 8px;
}

.data-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.data-value small {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
}

.data-status {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.data-status.good {
    color: #28ca41;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .app-preview {
        max-width: 450px;
    }
}

@media (max-width: 600px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .app-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .sidebar-item {
        white-space: nowrap;
    }
}

/* ============================================
   Gombok
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn-primary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    border: 2px solid;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ============================================
   Partnerek szekció
   ============================================ */
.partners {
    padding: 3rem 0;
    text-align: center;
}

.partners-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.partner-logo img {
    height: 50px;
    width: auto;
}

.partner-logo span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.bausoft-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.partner-divider {
    font-size: 1.5rem;
    opacity: 0.3;
}

/* ============================================
   Szekciók általános stílusa
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.75;
}

/* ============================================
   Funkciók grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ============================================
   Modulok grid
   ============================================ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.module-features {
    list-style: none;
    text-align: left;
}

.module-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-features li::before {
    content: '✓';
    font-weight: 700;
}

/* ============================================
   Logó bemutató
   ============================================ */
.logo-showcase {
    padding: 5rem 0;
}

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

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

.logo-preview {
    height: 150px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

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

.logo-preview.light-bg {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.logo-preview.dark-bg {
    background: #1a1a2e;
}

.logo-preview.gradient-bg {
    background: linear-gradient(135deg, #323D37 0%, #7BBA40 100%);
}

.logo-card p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.kmsoft-logo-concept {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmsoft-svg {
    width: 180px;
    height: 55px;
}

/* ============================================
   Árazás
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.25rem;
    vertical-align: super;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.pricing-note svg {
    flex-shrink: 0;
}

/* ============================================
   Szín paletta bemutató
   ============================================ */
.color-palette {
    padding: 5rem 0;
}

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

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

.color-swatch {
    height: 100px;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-swatch.primary { background: var(--color-primary); }
.color-swatch.secondary { background: var(--color-secondary); }
.color-swatch.accent { background: var(--color-accent); }
.color-swatch.background { background: var(--color-bg); border: 1px solid #ddd; }
.color-swatch.surface { background: var(--color-surface); border: 1px solid #ddd; }
.color-swatch.text { background: var(--color-text); }

.color-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.color-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    opacity: 0.7;
    background: rgba(128, 128, 128, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ============================================
   Lábléc
   ============================================ */
.main-footer {
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.75;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

.footer-heritage {
    font-style: italic;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   UI KOMPONENSEK - FORM ELEMEK
   ============================================ */

.ui-components {
    padding: 4rem 0;
}

.component-group {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.component-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.component-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.component-item.wide {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .component-item.wide {
        grid-column: span 1;
    }
}

/* Form Label */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-input.focus {
    outline: none;
}

.form-input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-input::placeholder {
    opacity: 0.5;
}

.form-error {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

.input-with-icon .form-input {
    padding-left: 2.75rem;
}

/* Input with unit */
.input-with-unit {
    position: relative;
    display: flex;
}

.input-with-unit .form-input {
    padding-right: 4rem;
    text-align: right;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    flex: 1;
}

/* Natív number input spinner elrejtése */
.input-with-unit .form-input::-webkit-outer-spin-button,
.input-with-unit .form-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-unit .form-input[type=number] {
    -moz-appearance: textfield;
}

.input-unit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 8px 8px 0;
    min-width: 3.5rem;
    border: 1px solid;
    border-left: 1px solid;
}

/* Number Stepper */
.number-stepper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.stepper-btn {
    width: 40px;
    border: 1px solid;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.stepper-btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.stepper-btn:hover {
    opacity: 0.9;
}

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

.stepper-input {
    width: 60px;
    text-align: center;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    -moz-appearance: textfield;
    outline: none;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-stepper.large .stepper-btn {
    width: 48px;
}

.number-stepper.large .stepper-input {
    width: 80px;
    font-size: 1.25rem;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
}

/* Select */
.form-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
}

.form-select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-select.small {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.radio-item input[type="radio"]:checked + .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Radio Cards */
.radio-group.cards {
    flex-direction: row;
    gap: 1rem;
}

.radio-card {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 2px solid;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.radio-card-content svg {
    opacity: 0.7;
}

.radio-card-content span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-item[data-disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

/* Toggle Switch */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.toggle-label {
    font-size: 0.95rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch.small {
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.small .toggle-slider::before {
    height: 16px;
    width: 16px;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch.small input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-inline-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* Range Slider */
.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.25rem;
}

.slider-value {
    font-weight: 600;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-label span {
    font-size: 0.95rem;
}

.file-upload-label small {
    font-size: 0.8rem;
    opacity: 0.6;
}

.file-upload.compact .file-upload-label {
    flex-direction: row;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.file-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-size {
    font-size: 0.8rem;
    opacity: 0.6;
}

.file-remove {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* ============================================
   TÁBLÁZATOK
   ============================================ */

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid;
}

.data-table th {
    font-weight: 600;
    font-size: 0.875rem;
    /* text-transform eltávolítva a mértékegységek helyes megjelenítése miatt (m vs M) */
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    opacity: 0.8;
}

.sort-icon {
    opacity: 0.4;
    margin-left: 0.25rem;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table .col-check {
    width: 40px;
    text-align: center;
}

.data-table .col-num {
    width: 50px;
    text-align: center;
}

.data-table .col-number {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.data-table .col-drag {
    width: 40px;
    text-align: center;
}

.data-table .col-actions {
    width: 80px;
    text-align: right;
}

.drag-handle {
    cursor: grab;
    opacity: 0.5;
    font-size: 1.5rem;
    letter-spacing: -0.15em;
    padding: 0.5rem;
    margin: -0.5rem;
    user-select: none;
    transition: opacity 0.2s ease;
}

.drag-handle:hover {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.material-cell {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.material-name {
    font-weight: 500;
}

.material-category {
    font-size: 0.75rem;
    opacity: 0.6;
}

.table-input {
    width: 70px;
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
    border: 1px solid;
    border-radius: 4px;
}

.table-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.data-table tfoot td {
    border-bottom: none;
}

.summary-row {
    font-weight: 600;
}

.table-link {
    font-weight: 500;
}

.table-link:hover {
    text-decoration: underline;
}

.table-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

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

.result-label {
    font-weight: 500;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.result-status {
    font-size: 0.85rem;
}

/* Table Toolbar */
.table-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.table-search svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.table-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.875rem;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Table Pagination */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid;
}

.pagination-info {
    font-size: 0.85rem;
    opacity: 0.7;
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.badge-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.status-badge.outline {
    background: transparent;
    border: 1px solid;
}

/* ============================================
   ALERTS
   ============================================ */

.alerts-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 0.125rem;
}

.alert-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar.striped .progress-fill {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress-bar.animated .progress-fill {
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.progress-label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.progress-segments {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-segments .segment {
    height: 100%;
}

.progress-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.375rem;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: dots 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 16px;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toast svg {
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;
    font-size: 0.9rem;
}

.toast-content span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tooltip-trigger {
    position: relative;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.tooltip-trigger::before {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
}

.tooltip-trigger[data-tooltip-pos="top"]::after {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-trigger[data-tooltip-pos="top"]::before {
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-top-color: inherit;
}

.tooltip-trigger[data-tooltip-pos="bottom"]::after {
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-trigger[data-tooltip-pos="bottom"]::before {
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
}

.tooltip-trigger[data-tooltip-pos="left"]::after {
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-trigger[data-tooltip-pos="left"]::before {
    right: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-trigger[data-tooltip-pos="right"]::after {
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-trigger[data-tooltip-pos="right"]::before {
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   TABS
   ============================================ */

.tabs-container {
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid;
}

.tabs .tab {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tabs .tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    transition: background-color 0.2s ease;
}

.tabs .tab:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tabs.pills {
    border-bottom: none;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 8px;
}

.tabs.pills .tab {
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
}

.tabs.pills .tab::after {
    display: none;
}

.tabs.vertical {
    flex-direction: column;
    border-bottom: none;
    border-right: 2px solid;
    width: fit-content;
    gap: 0.25rem;
}

.tabs.vertical .tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-align: left;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 0 0 8px;
}

.tabs.vertical .tab::after {
    bottom: 0;
    left: auto;
    right: -2px;
    top: 0;
    width: 2px;
    height: auto;
}

.tab-content {
    padding: 1.5rem 0;
    display: none;
}

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

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-separator {
    opacity: 0.4;
}

.breadcrumb-current {
    font-weight: 500;
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid;
}

.accordion-item {
    border-bottom: 1px solid;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   MODAL
   ============================================ */

.modal-demo {
    position: relative;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid;
}

.modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-list-item {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-list-item strong {
    display: block;
    font-size: 0.9rem;
}

.modal-list-item span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid;
}

/* ============================================
   BUTTONS VARIATIONS
   ============================================ */

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
