/**
 * WebKiosk - Stílusok
 * Modern, letisztult design landscape kijelzőkhöz optimalizálva
 */

/* ==================== Reset & Alap ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Színek */
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --dark: #0a0a12;
    --dark-light: #12121f;
    --dark-mid: #1a1a2e;
    --gray: #95a5a6;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    
    /* Méretek - Landscape optimalizált */
    --omb-size: 56px;
    --border-radius: 14px;
    --transition: 0.25s ease;
    
    /* Kijelző méretek */
    --screen-width: 100vw;
    --screen-height: 100vh;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

body {
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* ==================== Landscape Mode Class ==================== */
.landscape-mode {
    overflow: hidden;
}

/* ==================== OMB (On-Screen Menu Button) ==================== */
.omb-button {
    position: fixed;
    top: 16px;
    left: 16px;
    width: var(--omb-size);
    height: var(--omb-size);
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.omb-button:hover, .omb-button:active {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.omb-button:active {
    transform: scale(0.95);
}

.omb-button.large {
    width: 64px;
    height: 64px;
    font-size: 26px;
    background: var(--primary);
    box-shadow: 0 6px 30px rgba(52, 152, 219, 0.4);
}

.omb-button.large:hover {
    background: var(--primary-dark);
}

/* ==================== Slideshow / Főoldal ==================== */
.slideshow-page {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, var(--dark-mid) 100%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    padding: 80px 60px;
}

.slideshow-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(155, 89, 182, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 1000px;
    z-index: 1;
    position: relative;
}

.slide-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

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

.slide-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    opacity: 0.85;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.slide-image {
    max-width: 70%;
    max-height: 35vh;
    margin-top: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Clock & Date */
.slideshow-clock {
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slideshow-date {
    position: fixed;
    top: 70px;
    right: 24px;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: rgba(255,255,255,0.4);
    z-index: 100;
}

/* Slide indicators */
.slide-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.slide-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator .dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* Logo */
.slideshow-logo {
    position: fixed;
    bottom: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    z-index: 100;
}

.slideshow-logo i {
    font-size: 1.2rem;
}

/* ==================== Főmenü / Menu Page ==================== */
.menu-page {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-header .logo i {
    font-size: 28px;
    color: var(--primary);
}

.menu-header .logo h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

.header-info .site-total {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Kategória panelek - Landscape vízszintes görgetés */
.menu-content {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.menu-content::-webkit-scrollbar {
    display: none;
}

.categories-scroll {
    display: flex;
    gap: 20px;
    height: 100%;
    min-width: min-content;
}

.category-panel {
    flex: 0 0 auto;
    width: min(350px, 35vw);
    height: 100%;
    background: rgba(255,255,255,0.04);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    overflow: hidden;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0,0,0,0.2);
    border-left: 4px solid var(--cat-color);
}

.category-title i {
    font-size: 1.2rem;
    color: var(--cat-color);
}

.category-title span:first-of-type {
    font-weight: 600;
    font-size: 1rem;
}

.category-title .count {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.category-sites {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: start;
    overflow-y: auto;
}

.site-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: all var(--transition);
    cursor: pointer;
}

.site-tile:hover, .site-tile:active {
    background: rgba(255,255,255,0.12);
    transform: scale(0.97);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tile-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.tile-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255,255,255,0.9);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
    min-width: 100px;
}

.nav-item:hover, .nav-item:active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-item.admin {
    background: rgba(46, 204, 113, 0.2);
    color: var(--secondary);
}

.nav-item.admin:hover {
    background: rgba(46, 204, 113, 0.3);
}

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

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== Assistive Overlay ==================== */
.assistive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.assistive-overlay.active {
    opacity: 1;
    visibility: visible;
}

.assistive-menu {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    color: var(--dark);
    position: relative;
    transform: scale(0.9);
    transition: all var(--transition);
}

.assistive-overlay.active .assistive-menu {
    transform: scale(1);
}

.assistive-menu h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.menu-subtitle {
    color: #666;
    margin-bottom: 24px;
}

.assistive-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assistive-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f5f6fa;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--dark);
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.assistive-btn:hover, .assistive-btn:active {
    border-color: var(--primary);
    background: #e8f4fc;
}

.assistive-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.assistive-btn.large {
    flex-direction: column;
    padding: 28px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.assistive-btn.large i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.close-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-overlay:hover {
    background: #e0e0e0;
}

/* ==================== Assistive Page (iframe) ==================== */
.assistive-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--dark);
}

.url-bar {
    position: fixed;
    top: 0;
    left: 64px;
    right: 0;
    height: 56px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.url-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
}

.url-info i {
    font-size: 0.9rem;
}

.url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-actions {
    display: flex;
    gap: 8px;
}

.url-actions button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-actions button:hover {
    background: rgba(255,255,255,0.2);
}

.fullscreen-btn {
    position: fixed;
    top: 70px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    z-index: 101;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(255,255,255,0.2);
}

.iframe-container {
    flex: 1;
    margin-top: 56px;
}

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

.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    z-index: 100;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-btn:hover, .nav-btn:active {
    background: rgba(255,255,255,0.15);
}

.nav-btn.primary {
    background: var(--primary);
}

.nav-btn.primary:hover {
    background: var(--primary-dark);
}

.nav-btn i {
    font-size: 1rem;
}

/* ==================== Admin Panel ==================== */
.admin-page {
    background: #f0f2f5;
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.login-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 32px;
    color: var(--white);
}

.login-box h1 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.login-subtitle {
    color: #888;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.login-box .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all var(--transition);
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Admin Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
    font-size: 24px;
    color: var(--primary);
}

.sidebar-header h2 {
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.sidebar-nav .badge {
    margin-left: auto;
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-back, .btn-logout {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.btn-back:hover {
    background: rgba(255,255,255,0.15);
}

.btn-logout {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
}

.btn-logout:hover {
    background: var(--danger);
    color: var(--white);
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.admin-header h1 i {
    color: var(--primary);
}

.admin-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.websites-list, .slideshow-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.website-item, .slideshow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all var(--transition);
}

.website-item:hover, .slideshow-item:hover {
    background: #e9ecef;
}

.website-item.inactive, .slideshow-item.inactive {
    opacity: 0.5;
}

.website-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.website-info {
    flex: 1;
    min-width: 0;
}

.website-info h3 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.website-info p {
    font-size: 0.8rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-category {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    color: var(--white);
    margin-top: 4px;
}

.slideshow-content {
    flex: 1;
}

.slideshow-content h3 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.slideshow-content p {
    font-size: 0.8rem;
    color: #888;
}

.has-image {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--secondary);
}

.website-actions, .slideshow-actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: var(--white);
    color: #888;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-icon.btn-danger:hover {
    background: var(--danger);
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.empty-message i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ==================== Modal ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: all var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--dark);
    font-size: 1.2rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[type="color"] {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-secondary {
    padding: 12px 20px;
    background: #e8e8e8;
    color: #555;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: #ddd;
}

/* ==================== Landscape Mobile Reszponzív ==================== */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 72px;
    }
    
    .sidebar-header h2, .sidebar-nav span, .sidebar-nav .badge {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
    }
    
    .sidebar-footer {
        align-items: center;
    }
    
    .btn-back span, .btn-logout span {
        display: none;
    }
    
    .admin-main {
        margin-left: 72px;
    }
}

@media (max-width: 768px) {
    /* Menu page */
    .category-panel {
        width: min(300px, 80vw);
    }
    
    .category-sites {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 12px 16px;
    }
    
    /* Admin */
    .admin-sidebar {
        width: 60px;
    }
    
    .admin-main {
        margin-left: 60px;
        padding: 16px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .admin-card {
        padding: 16px;
    }
    
    .website-item, .slideshow-item {
        flex-wrap: wrap;
    }
    
    .website-actions, .slideshow-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .slideshow-clock {
        font-size: 1.4rem;
        top: 10px;
    }
    
    .slideshow-date {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-icon {
        font-size: 3rem;
    }
    
    .omb-button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Landscape forced */
@media (orientation: portrait) {
    .landscape-mode .menu-content {
        flex-direction: column;
    }
    
    .categories-scroll {
        flex-direction: column;
        height: auto;
    }
    
    .category-panel {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }
}
