/* ========================================
   DESKTOP STYLES - ALAPVETŐ STÍLUSOK
   ======================================== */

/* ===== MATERIAL ICONS - LOCAL FONT ===== */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url('fonts/MaterialSymbolsOutlined.woff2') format('woff2');
    font-display: swap;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    visibility: visible;
    opacity: 1;
}

/* Elrejtjük az ikont amíg a font be nem töltődik */
.material-symbols-outlined:not(.font-loaded) {
    visibility: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #f39c12;
    --primary-hover: #e67e22;
    --secondary-color: #3a4a5a;
    --secondary-hover: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-color: #e9ecef;
    --text-color: #212529;
    --text-muted: #6c757d;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Minden link aláhúzás eltávolítása */
a {
    text-decoration: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== FOOTER ===== */
.footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* ===== TOP HEADER ===== */
.top-header {
    background: #3a4a5a;
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    display: flex;
    width: calc(100% - 20px);
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 20px 20px;
    margin: 8px auto;
    position: relative;
    z-index: 1000;
}

.header-left {
    /* width: 280px; */
    min-width: 280px;
    flex-shrink: 0;
}

.header-left .page-title {
    font-size: 17px;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.app-suffix {
    color: #6C8DAA;
    font-weight: 300;
    margin-left: 2px;
}

/* Mobile menu elements - hidden on desktop */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu-content,
.mobile-menu-close,
.mobile-nav,
.hamburger-line {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
    justify-content: center;
}

.header-nav .nav-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.header-nav .nav-item {
    display: flex;
    margin-bottom: 0;
    width: auto;
}

.header-nav .nav-link,
.logout-section .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    min-width: 32px;
    height: 32px;
}


.header-nav .nav-link:hover,
.logout-section .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.header-nav .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Header Navigation Icons */
.header-nav .nav-icon,
.logout-section .nav-icon,
.header-nav img.nav-icon,
.header-nav .nav-link img,
.search-icon,
.mobile-nav-icon,
.close-icon,
.mobile-nav-link .nav-icon,
.logout-link .nav-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    margin-right: 0;
}


/* Search Container - General fallback (removed - using specific rules) */

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.search-dropdown.active {
    display: block;
}

/* Duplikált search-result szabályok törölve - header-center specifikus szabályok használata */

/* Header Center */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 15px;
    position: relative;
}

/* Header Search Container - Végleges megoldás */
.header-center .search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #2c3e50;
    border: 2px solid #34495e;
    border-radius: 25px;
    height: 40px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-center .search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    transform: translateY(-1px);
}

.header-center .search-icon {
    width: 18px;
    height: 18px;
    margin-left: 16px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    flex-shrink: 0;
}

.header-center .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #ffffff;
    outline: none;
    padding: 0 12px;
    height: 100%;
}

.header-center .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.header-center .search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.header-center .search-dropdown.active {
    display: block;
    animation: searchDropdownFadeIn 0.2s ease-out;
}

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

.header-center .search-results {
    padding: 8px 0;
}

.header-center .search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.header-center .search-result-item:hover {
    background-color: #f8f9fa;
}

.header-center .search-result-item:last-child {
    border-bottom: none;
}

.header-center .search-result-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    filter: brightness(0) invert(0.5);
    flex-shrink: 0;
}

.header-center .search-result-content {
    flex: 1;
    min-width: 0;
}

.header-center .search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-center .search-result-subtitle {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-center .search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    justify-content: flex-end;
    position: relative;
}

/* Notification icon container */
.notification-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.notification-icon-container:hover {
    opacity: 0.8;
}

.notification-icon-container .nav-icon {
    filter: brightness(0) invert(1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2c3e50;
    z-index: 10;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 350px;
    max-width: 500px;
}

/* Connection Status Indicator in Header */
.connection-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.status-link .status-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.status-dot.offline {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-orange 2s infinite;
}

.status-dot.force-offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.status-badge {
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.status-badge.hidden {
    display: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    background: #2980b9;
}

.user-name {
    font-weight: 500;
    color: white;
}

.logout-section {
    display: flex;
    align-items: center;
}



/* ===== CONTENT CONTAINER ===== */
.content-container {
    display: flex;
    flex: 1;
}

.content-wrapper {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px 24px;
}

.content-main {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.content-main.full-width {
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    margin-left: 0;
    padding: 20px 24px;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.content-header .header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.content-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

.content-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
}

/* Content Controls */
.content-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== VIEW SELECTOR STYLES ===== */
.view-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-selector span {
    color: var(--text-primary);
    font-weight: 500;
}

.view-dropdown {
    padding: 0 16px;
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view-dropdown:hover {
    border-color: #f39c12;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.1);
}

.view-dropdown:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.view-dropdown img {
    width: 16px;
    height: 16px;
    filter: invert(0.5);
    transition: transform 0.3s ease;
}

.view-dropdown.open img {
    transform: rotate(180deg);
}

/* Content Search - Common styles */
.content-header .search-container,
.content-controls .search-container,
.task-filters .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 0 14px;
    height: 36px;
    transition: all 0.2s ease;
}

.content-header .search-container:focus-within,
.content-controls .search-container:focus-within,
.task-filters .search-container:focus-within {
    border-color: #506980;
    box-shadow: 0 0 0 3px rgba(80, 105, 128, 0.1);
}

.content-header .search-icon,
.content-controls .search-icon,
.task-filters .search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    flex-shrink: 0;
    filter: brightness(0.3);
}

.content-header .search-input,
.content-controls .search-input,
.task-filters .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    height: 100%;
    padding: 0;
}

.content-header .search-input::placeholder,
.content-controls .search-input::placeholder,
.task-filters .search-input::placeholder {
    color: #9ca3af;
}

.content-header .search-clear-btn,
.content-controls .search-clear-btn,
.task-filters .search-clear-btn {
    background: none;
    border: none;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.content-header .search-clear-btn:hover,
.content-controls .search-clear-btn:hover,
.task-filters .search-clear-btn:hover {
    opacity: 1;
}

.content-header .search-clear-btn img,
.content-controls .search-clear-btn img,
.task-filters .search-clear-btn img {
    width: 14px;
    height: 14px;
    filter: brightness(0.3);
}

/* Content Header Search specific */
.content-header .search-container {
    min-width: 260px;
    max-width: 320px;
}

/* Content Controls Search specific */
.content-controls .search-container {
    min-width: 240px;
}

/* ===== RESPONSIVE ===== */

/* Desktop styles - 1024px and up */
@media (min-width: 1024px) {
    .main-content {
        padding: 24px 32px;
    }
    
    .content-wrapper {
        padding: 24px 32px;
    }
    
    .content-main {
        padding: 24px;
    }
}

/* Mobile styles - 768px and down */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    
    .top-header {
        padding: 8px 12px;
        margin-left: 0;
        width: 100%;
        position: fixed;
        top: 0;
        margin-top: 0;
    }
    
    .search-container {
        min-width: 180px;
        height: 36px;
    }
    
    .header-left {
        /* width: 200px; */
        min-width: 200px;
    }
    
    .header-nav {
        width: 300px;
        min-width: 300px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .content-wrapper {
        padding: 16px;
        flex-direction: column;
    }
    
    .content-title {
        font-size: 1.4rem;
    }
    
    .content-header .search-container,
    .content-controls .search-container {
        min-width: 200px;
        height: 32px;
    }
}

/* Icon Sizes - Standardized */
.icon-16 {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-20 {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-24 {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-48 {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Icon Filters */
.icon-white {
    filter: brightness(0) invert(1);
}

.icon-invert {
    filter: brightness(0) invert(1);
}

/* Button Icons */
.btn img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== BUTTON STYLES ===== */

/* Primary Button - narancssárga */
.btn-primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-primary img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* Secondary Button - narancssárga (aktív) */
.btn-secondary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Disabled állapot - szürke */
.btn-secondary:disabled,
.btn-secondary.disabled {
    background: #3a4a5a !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary:disabled:hover,
.btn-secondary.disabled:hover {
    background: #3a4a5a !important;
    transform: none;
    box-shadow: none;
}

.btn-secondary img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* Label elements with btn-secondary should look the same as buttons */
label.btn-secondary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    text-decoration: none;
    min-height: 40px;
}

label.btn-secondary:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
}

label.btn-secondary img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* Card Icons */
.card-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}


/* Action Icons */
.action-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Status Icons */
.status-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Small Icons */
.small-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Large Icons */
.large-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Hero Icons */
.hero-icon {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    margin-right: 12px;
}

/* ===== DASHBOARD STYLES ===== */

/* Dashboard Subtitle */
.dashboard-subtitle {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 40px;
}

.dashboard-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #506980;
    text-decoration: none;
}

.dashboard-quick-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.dashboard-quick-action-card:hover .dashboard-quick-action-icon {
    transform: scale(1.1);
}

.dashboard-quick-action-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.dashboard-quick-action-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

.dashboard-quick-action-card:hover .dashboard-quick-action-title {
    color: #506980;
}

/* Quick Action Icon Colors */
.dashboard-quick-action-icon.tasks-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dashboard-quick-action-icon.clients-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.dashboard-quick-action-icon.locations-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dashboard-quick-action-icon.maintenance-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dashboard-quick-action-icon.systems-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.dashboard-quick-action-icon.permissions-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.dashboard-quick-action-icon.certificates-icon {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.dashboard-quick-action-icon.form-editor-icon {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.dashboard-quick-action-icon.qr-codes-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.dashboard-quick-action-icon.groups-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.dashboard-quick-action-icon.documents-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.dashboard-quick-action-icon.add-user-icon {
    background: linear-gradient(135deg, #84cc16, #65a30d);
}

.dashboard-quick-action-icon.system-categories-icon {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.dashboard-quick-action-icon.cleanup-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===== PWA INSTALL CARD STYLES ===== */
.pwa-hidden {
display: none;
}

.pwa-install-card {
    position: relative;
overflow: visible;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* QR Scanner oldal elrejtése asztali nézetben - csak mobilon elérhető */
@media (min-width: 769px) {
    .page-qr_scanner .content-wrapper,
    .page-qr_scanner .content-main {
        display: none !important;
    }
}

/* PWA elemek elrejtése asztali nézetben - csak mobilon jelenik meg */
@media (min-width: 769px) {
    .pwa-install-card,
    #pwa-install-card,
    .pwa-instructions-section,
    #pwa-instructions {
display: none;
    }
}

/* ===== OFFLINE MÓD GOMB ÉS BANNER ===== */
.btn-offline-mode {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-offline-mode:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-offline-mode:active {
    transform: translateY(0);
}

.btn-offline-mode img {
    filter: brightness(0) invert(1);
}

.offline-help {
    display: block;
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.offline-active-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.offline-active-content {
    display: flex;
    align-items: center;
    color: white;
}

.offline-active-content img {
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.offline-active-content div {
    flex: 1;
}

.offline-active-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.offline-active-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(102, 126, 234, 0.6);
    }
}

.pwa-install-card .dashboard-quick-action-title {
color: white;
}

.pwa-install-card .dashboard-quick-action-icon,
.dashboard-quick-action-icon.pwa-install-icon {
background: linear-gradient(135deg, #84cc16, #65a30d);
display: flex;
align-items: center;
justify-content: center;
}

.pwa-install-card .dashboard-quick-action-icon img,
.dashboard-quick-action-icon.pwa-install-icon img {
width: 32px;
height: 32px;
filter: brightness(0) invert(1);
display: block;
opacity: 1;
visibility: visible;
}

.pwa-install-button {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #667eea;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pwa-install-button:hover {
    background: #f0f0f0;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pwa-install-button img {
    filter: none;
}

/* PWA Instructions Section */
.pwa-instructions-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.pwa-info-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.pwa-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.pwa-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-app-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.pwa-app-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.pwa-app-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pwa-feature-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.pwa-description {
    margin-bottom: 24px;
}

.pwa-description p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 16px;
}

.pwa-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwa-benefits-list li {
    padding: 8px 0;
    color: #4b5563;
    font-size: 14px;
}

.pwa-platform-instructions {
    margin: 24px 0;
}

.pwa-platform-guide {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.pwa-platform-guide h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
}

.pwa-platform-guide p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.pwa-steps-list {
    list-style: decimal;
    padding-left: 24px;
    margin: 0;
}

.pwa-steps-list li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.pwa-steps-list li strong {
    color: #1f2937;
    font-weight: 600;
}

.pwa-install-main-button {
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pwa-install-main-button img {
    filter: brightness(0) invert(1);
}

.pwa-already-installed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
    margin-top: 24px;
}

.pwa-already-installed img {
    filter: none;
}

/* Form Select - Global */
select.form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: transparent;
    color: #495057;
    font-size: 14px;
    min-height: 44px;
    transition: all 0.3s ease;
    cursor: pointer;
}

select.form-select:hover {
    border-color: #ff9800;
}

select.form-select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Full Width Form Group - Desktop */
@media (min-width: 1024px) {
    .form-group.full-width {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Searchable Select Dropdown Styles */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.searchable-select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    width: 100%;
    font-size: 14px;
    color: #495057;
}

.searchable-select-display:hover {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.searchable-select-display.has-value {
    border-color: #ff9800;
}

.searchable-select-placeholder {
    color: #6c757d;
    font-size: 14px;
    flex: 1;
    user-select: none;
}

.searchable-select-display.has-value .searchable-select-placeholder {
    color: #333;
    font-weight: 500;
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.searchable-select-search {
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #ffffff;
}

.searchable-select-search input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: transparent;
}

.searchable-select-search input:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.searchable-select-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
    background: #ffffff;
}

.searchable-select-option {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
}

.searchable-select-option:hover {
    background: #f0f3ff;
    color: #4a5ff7;
}

.searchable-select-option:active {
    background: #e0e7ff;
}

.searchable-select-option.selected {
    background: #e0e7ff;
    color: #4a5ff7;
}

/* Scrollbar styling for options */
.searchable-select-options::-webkit-scrollbar {
    width: 8px;
}

.searchable-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.searchable-select-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.searchable-select-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 40px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-stat-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #506980;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #506980;
}

.dashboard-stat-card:hover::before {
    transform: scaleX(1);
}

.dashboard-stat-card .stat-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #506980, #3a4a5a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.dashboard-stat-card .stat-icon-wrapper img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.dashboard-stat-card .stat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.dashboard-stat-card .stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Card Color Variants */
.dashboard-stat-card.stat-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.dashboard-stat-card.stat-success .stat-icon-wrapper {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.dashboard-stat-card.stat-info .stat-icon-wrapper {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.dashboard-stat-card.stat-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.dashboard-stat-card.stat-danger .stat-icon-wrapper {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.dashboard-stat-card.stat-secondary .stat-icon-wrapper {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

/* ===== DASHBOARD ACTIVITY STYLES ===== */
.recent-activity-section {
    margin-top: 30px;
}

.activity-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

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

.activity-item:hover {
    background-color: #f8f9fa;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.activity-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.activity-icon.status-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-icon.status-completed {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-icon.status-active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.activity-icon.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-details {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 11px;
    color: #999;
}

/* ===== SYSTEMS PAGE STYLES ===== */
.systems-container {
    margin-top: 20px;
}

.location-group {
    margin-bottom: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.location-group:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.location-header {
    background: linear-gradient(135deg, #506980, #3a4a5a);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.systems-list {
    padding: 16px 0;
    background: #f8f9fa;
}

.system-item {
    border-bottom: 1px solid #f1f3f5;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.system-item:last-child {
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 16px;
}

.system-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #506980;
}

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

.system-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-count-badge {
    background: linear-gradient(135deg, #506980, #3a4a5a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.system-original-name {
    color: #666;
    font-weight: 400;
    font-size: 14px;
}

/* ===== SYSTEM DETAILS STYLES ===== */
.system-details {
    margin-bottom: 15px;
}

.system-basic-info {
    margin-bottom: 15px;
}

.system-basic-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.system-basic-info p strong {
    color: #2c3e50;
    font-weight: 600;
}

.system-elements-section {
    margin: 15px 0;
}

.system-elements-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.elements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.element-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid #506980;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.element-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
    border-left-color: #3a4a5a;
}

.element-header {
    margin-bottom: 10px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.element-header strong {
    color: #506980;
    font-weight: 700;
}

.element-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.element-details span {
    font-size: 12px;
    color: #495057;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.system-meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.system-meta-info p {
    margin: 6px 0;
    font-size: 12px;
    color: #999;
    display: block;
}

.system-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

.delete-confirmation {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.delete-confirmation-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.delete-confirmation-content img {
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.delete-confirmation-content span {
    font-weight: 500;
    color: #333;
}

.delete-confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Search and Filters */
.search-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.search-filters form {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr auto;
    gap: 15px;
    align-items: end;
}

.search-filters .form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
    padding-top: 10px;
}

.search-filters .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-filters label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search filters use general form styles - no override needed */

.search-filters .dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}


/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state img {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Empty State Container - Maintenance Page */
.clients-grid .empty-state-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 60px 20px;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
}

.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 60px 20px;
    width: 100%;
}

.empty-state-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.empty-state-content .empty-state-icon {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    margin: 0 auto 20px;
    display: block;
    filter: grayscale(100%);
}

.empty-state-content .empty-state-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.4;
}

.empty-state-content .empty-state-description {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination span {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ===== CLIENTS PAGE STYLES ===== */

/* Clients Grid Layout */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}

/* Üres állapot esetén középre igazítás - modern böngészők */
.clients-grid:has(.empty-state-container) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Fallback - ha csak az empty-state-container van a grid-ben */
.clients-grid > .empty-state-container:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
}

/* Client Card Base */
.client-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

/* Befejezetlen karbantartás kártya stílus */
.client-card.maintenance-incomplete {
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.client-card.maintenance-incomplete:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
    border-left-color: #d97706;
}

/* Befejezetlen karbantartás figyelmeztető banner */
.maintenance-incomplete-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px 16px;
    margin: -20px -20px 16px -20px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.incomplete-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.incomplete-banner-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.incomplete-banner-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.incomplete-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.incomplete-banner-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
}

.incomplete-banner-text span {
    font-size: 13px;
    color: #78350f;
    line-height: 1.4;
}

.incomplete-banner-progress {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(80, 105, 128, 0.15);
    border-color: #506980;
}

/* Client Card Header */
.client-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
}

/* Client Avatar */
.client-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #506980 0%, #6c8daa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(80, 105, 128, 0.2);
}

.client-avatar img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.client-avatar .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

.client-avatar .material-icon {
    width: 28px;
    height: 28px;
    color: white;
    fill: white;
}

.client-avatar .material-icon path {
    fill: white;
}

/* System category based avatar colors */
.client-avatar[data-system-category="1"] {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Beépített Tűzjelző berendezés */
}

.client-avatar[data-system-category="2"] {
    background: linear-gradient(135deg, #6b7280, #4b5563); /* Füst- és hőelvezető rendszer */
}

.client-avatar[data-system-category="3"] {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Tűz- és Füstgátló Nyílászárók */
}

.client-avatar[data-system-category="4"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Biztonsági rendszer */
}

.client-avatar[data-system-category="5"] {
    background: linear-gradient(135deg, #0ea5e9, #0284c7); /* Vízzel oltó rendszer */
}

.client-avatar[data-system-category="6"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2); /* Habbal oltó rendszer */
}

.client-avatar[data-system-category="7"] {
    background: linear-gradient(135deg, #a855f7, #9333ea); /* Porral oltó rendszer */
}

.client-avatar[data-system-category="8"] {
    background: linear-gradient(135deg, #10b981, #059669); /* Gázzal oltó rendszer */
}

.client-avatar[data-system-category="9"] {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed); /* Aeroszollal oltó rendszer */
}

.client-avatar[data-system-category="10"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2); /* Vízköddel oltó rendszer */
}

.client-avatar[data-system-category="11"] {
    background: linear-gradient(135deg, #eab308, #ca8a04); /* Biztonsági világítás */
}

/* Client Info */
.client-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Client Status Badge Styles - Icons Only */
.client-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.client-status:hover {
    transform: translateY(-1px) scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.client-status img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Megfelelő - Zöld */
.client-status.status-megfelelő,
.client-status.status-megfelelt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.client-status.status-megfelelő:hover,
.client-status.status-megfelelt:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}

/* Nem felelt meg - Piros */
.client-status.status-nem_felelt_meg,
.client-status.status-nem_felelt {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.client-status.status-nem_felelt_meg:hover,
.client-status.status-nem_felelt:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}

/* Részben megfelelő - Narancssárga */
.client-status.status-részben_megfelelő,
.client-status.status-részben {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid #b45309;
}

.client-status.status-részben_megfelelő:hover,
.client-status.status-részben:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-type {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Client Details */
.client-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.detail-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    flex: 1;
    min-width: 0;
}

/* Task Details View */
.task-details-container {
    margin-top: 20px;
}

.task-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Detail Section - Card Style (matching client-card and task-card) */
.detail-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    position: relative !important;
    overflow: hidden !important;
}

.detail-section:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(80, 105, 128, 0.15) !important;
    border-color: #506980 !important;
}

.detail-section h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f5;
}

.detail-section .section-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.detail-section .detail-row {
    padding: 10px 0;
}

.detail-section .detail-label {
    min-width: 140px;
}

.status-new { color: #6c757d; }
.status-in_progress { color: #3b82f6; }
.status-waiting { color: #f59e0b; }
.status-completed { color: #10b981; }
.status-closed { color: #6c757d; }

.priority-asap { color: #9c27b0; font-weight: 700; }
.priority-24_hours { color: #ef4444; font-weight: 700; }
.priority-72_hours { color: #f59e0b; }
.priority-schedule { color: #3b82f6; }
.priority-next_time { color: #6c757d; }
.priority-together { color: #6c757d; }

/* Client Actions */
.client-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}



/* Delete Confirmation */
.delete-confirm-row {
    display: none; /* Hidden by default */
    margin-top: 16px;
    padding: 16px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.delete-confirm-row.show {
    display: block; /* Show when active */
}

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

.delete-confirm-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

.delete-confirm-message img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(47%) sepia(81%) saturate(1481%) hue-rotate(2deg) brightness(95%) contrast(95%);
}

.delete-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    height: 32px;
    min-height: 32px;
}

/* Danger Button - piros */
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Success Button - zöld */
.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

/* Error Button - alias for danger */
.btn-error {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-error:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-error:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.btn-danger img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* ===== BACK BUTTON STYLES ===== */
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3a4a5a;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.back-button:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 74, 90, 0.3);
}

.back-button:active {
    transform: translateY(0);
}

.back-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    display: block;
}

.btn-warning {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-warning:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-warning:disabled {
    background: #e9ecef;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-warning img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* ===== PAGINATION STYLES ===== */

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pagination-left,
.pagination-right {
    display: flex;
    gap: 8px;
}

.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.pagination-info span {
    white-space: nowrap;
}

/* ===== TASKS PAGE STYLES ===== */

/* Calendar Container */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 0;
}

.calendar-container.notion-style {
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.calendar-nav-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.calendar-today-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

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

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.calendar-view-toggle {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 6px;
}

.view-toggle-btn {
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.view-toggle-btn.active img {
    filter: brightness(0) invert(1) !important;
}

.view-toggle-btn:hover:not(.active) {
    background: #f8f9fa;
    color: var(--text-color);
}

/* Calendar Grid */
.calendar-grid {
    background: white;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    width: 100%;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-weekday.weekend {
    color: #adb5bd;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e9ecef;
    gap: 1px;
}

.calendar-days-grid.two-week {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.two-week-view .calendar-days-grid {
    min-height: 500px;
}

/* Calendar Day Styles */
.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    background: #f8f9fa;
    opacity: 0.5;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: #fff4e6;
}

.calendar-day.weekend {
    background: #f8f9fa;
}

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

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1;
}

.calendar-day.today .day-number {
    color: var(--primary-color);
    font-weight: 700;
}

.day-month {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.calendar-task {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
    min-height: 20px;
}

.task-title {
    position: relative;
    z-index: 1;
    font-weight: 500;
    color: #212529;
}

.calendar-task:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

.calendar-task.status-pending {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.calendar-task.status-in_progress {
    background: #fff4e6;
    border-left-color: #f39c12;
    color: #b7791f;
}

.calendar-task.status-completed {
    background: #d1e7dd;
    border-left-color: #198754;
    color: #0f5132;
}

.calendar-task.status-cancelled {
    background: #e2e3e5;
    border-left-color: #6c757d;
    color: #41464b;
}

.task-more {
    padding: 4px 6px;
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    cursor: pointer;
    margin-top: 4px;
}

.task-more:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* Two-week view specific styles */
.calendar-day.two-week-day {
    min-height: 250px;
}

/* ===== WEEK TIMELINE VIEW STYLES ===== */
.week-timeline-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.week-timeline-container {
    display: none; /* Hidden by default on desktop - shown only when week view is active */
    min-height: 600px;
}

/* Show week timeline container only when week view grid is visible on desktop */
@media (min-width: 769px) {
    #weekTimelineViewGrid:not([style*="display: none"]) .week-timeline-container,
    #weekTimelineViewGrid[style*="display: block"] .week-timeline-container {
        display: flex;
    }
    
    /* Hide mobile timeline on desktop */
    .week-timeline-mobile-container {
        display: none !important;
    }
}

.timeline-time-column {
    width: 80px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    flex-shrink: 0;
}

.timeline-header-spacer {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
}

.timeline-hours {
    display: flex;
    flex-direction: column;
}

.timeline-time-slot {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    font-size: 12px;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

.timeline-days-container {
    display: flex;
    flex: 1;
    overflow-x: auto;
}

.timeline-day-column {
    flex: 1;
    min-width: 150px;
    border-right: 1px solid #e9ecef;
}

.timeline-day-column:last-child {
    border-right: none;
}

.timeline-day-header {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.timeline-day-header.today {
    background: linear-gradient(135deg, #506980 0%, #3a5366 100%);
    color: white;
}

.timeline-day-name {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.timeline-day-header.today .timeline-day-name,
.timeline-day-header.today .timeline-day-date {
    color: white;
}

.timeline-day-date {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.timeline-day-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 780px;
}

.timeline-hour-slot {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.timeline-hour-slot:hover {
    background: #f8f9fa;
}

.timeline-task {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
}

.timeline-task:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateX(2px);
    z-index: 20;
}

.timeline-task-time {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 2px;
}

.timeline-task-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Filter Search Styles */
.filter-search {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filter-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
}

.filter-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #212529;
    padding: 0;
    margin: 0;
}

.filter-search-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

.filter-search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Responsive Calendar Styles */
@media (max-width: 768px) {
    .calendar-container {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
    }
    
    .calendar-header h3 {
        font-size: 20px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .calendar-day-header {
        padding: 12px 4px;
        font-size: 12px;
    }
    
    .calendar-task {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    min-height: 500px;
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    min-height: 400px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.column-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: white;
    min-width: 24px;
}

.stat-circle.stat-total {
    background: #6c757d;
}

.stat-circle.stat-asap {
    background: #9c27b0; /* Sötétlila - ASAP prioritás */
}

.stat-circle.stat-high {
    background: #dc3545; /* Piros - 24_hours prioritás */
}

.stat-circle.stat-medium {
    background: #ffc107; /* Sárga - 72_hours prioritás */
}

.stat-circle.stat-low {
    background: #17a2b8; /* Kék - schedule/together/next_time prioritás */
}

.stat-circle:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.stat-circle.filter-active {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.task-count {
    background: #6c757d;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Task Cards - Clients oldal stílusával */
.task-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(80, 105, 128, 0.15);
    border-color: #506980;
}

.task-card.dragging, .task-card-new.dragging {
    opacity: 0.9;
    transform: rotate(3deg) scale(1.05);
    z-index: 1000;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 0 3px #007bff,
        0 0 30px rgba(0, 123, 255, 0.6);
    cursor: grabbing;
    transition: all 0.2s ease;
}

/* Duplikált szabály törölve - már definiálva van a .task-card-nál */

.kanban-column.drag-over {
    background: rgba(40, 167, 69, 0.1);
    border: 3px dashed #28a745;
    border-radius: 8px;
    transform: scale(1.02);
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.task-list.drag-over {
    background: rgba(40, 167, 69, 0.15);
    border: 3px dashed #28a745;
    border-radius: 8px;
    min-height: 150px;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 20px rgba(40, 167, 69, 0.2);
}

.task-list.drag-over::before {
    content: "✅ Ejtsd ide a feladatot";
    display: block;
    text-align: center;
    color: #28a745;
    font-weight: bold;
    padding: 20px;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.task-card.completed {
    opacity: 0.8;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}


.task-priority {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    white-space: nowrap;
}

.task-priority.priority-high {
    color: #e74c3c;
}

.task-priority.priority-medium {
    color: #f39c12;
}

.task-priority.priority-low {
    color: #27ae60;
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

/* Priority-based header border colors */
.task-card-asap .task-card-header {
    border-bottom-color: #9c27b0;
}

.task-card-high .task-card-header {
    border-bottom-color: #f44336;
}

.task-card-medium .task-card-header {
    border-bottom-color: #ff9800;
}

.task-card-low .task-card-header {
    border-bottom-color: #4caf50;
}

.task-card-default .task-card-header {
    border-bottom-color: #9e9e9e;
}

.task-card-closed .task-card-header {
    border-bottom-color: #6c757d;
}

.task-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.task-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-toggle-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.task-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.task-toggle-icon.rotated {
    transform: rotate(180deg);
}

.task-card-content {
    display: none !important;
    animation: slideDown 0.3s ease;
}

.task-card-content.expanded {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.task-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-card-title-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Priority-based icon colors */
.task-card-asap .task-card-title-icon {
    background-color: #9c27b0;
}

.task-card-high .task-card-title-icon {
    background-color: #f44336;
}

.task-card-medium .task-card-title-icon {
    background-color: #ff9800;
}

.task-card-low .task-card-title-icon {
    background-color: #4caf50;
}

.task-card-default .task-card-title-icon {
    background-color: #9e9e9e;
}

.task-card-closed .task-card-title-icon {
    background-color: #6c757d;
}

.task-priority-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    flex-shrink: 0;
}

.task-priority-badge.priority-asap {
    background: #9c27b0;
    color: white;
}

.task-priority-badge.priority-24_hours {
    background: #dc3545;
    color: white;
}

.task-priority-badge.priority-72_hours {
    background: #ffc107;
    color: #212529;
}

.task-priority-badge.priority-schedule {
    background: #17a2b8;
    color: white;
}

.task-priority-badge.priority-together {
    background: #6f42c1;
    color: white;
}

.task-priority-badge.priority-next_time {
    background: #6c757d;
    color: white;
}

.task-card-content:not(.expanded) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
}

/* Task card content alapértelmezetten rejtett */
.task-card-new .task-card-content:not(.expanded) {
    display: none !important;
}

/* Task Field - Base + Last Child + Child Elements */
.task-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.task-field:last-child {
    border-bottom: none;
}

.task-field .field-label {
    color: #6c757d;
    font-weight: 500;
    min-width: 60px;
}

.task-field .field-value {
    color: #2c3e50;
    font-weight: 400;
    text-align: right;
    flex: 1;
    min-width: 0;
}

/* Task Actions - Base + Child Buttons + Hover */
.task-actions {
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    justify-content: flex-end;
}

.task-actions button:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-warning) {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Task List */
.task-list {
    min-height: 200px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Task Card New - Clients oldal stílusával */
.task-card-new {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.task-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(80, 105, 128, 0.15);
    border-color: #506980;
}

/* Priority-based card colors - border és gradient eltávolítva */
.task-card-asap {
    background: white;
}

.task-card-asap:hover {
    border-color: #506980;
}

.task-card-high {
    background: white;
}

.task-card-high:hover {
    border-color: #506980;
}

.task-card-medium {
    background: white;
}

.task-card-medium:hover {
    border-color: #506980;
}

.task-card-low {
    background: white;
}

.task-card-low:hover {
    border-color: #506980;
}

.task-card-default {
    background: white;
}

.task-card-default:hover {
    border-color: #506980;
}

/* Closed/Completed task cards - grayed out */
.task-card-closed {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    opacity: 0.7;
    filter: grayscale(0.3);
}

.task-card-closed:hover {
    background: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    border-color: #6c757d !important;
    opacity: 0.8;
    transform: translateY(-2px);
}

.task-card-closed .task-card-title {
    color: #6c757d !important;
}

.task-card-closed .task-field {
    color: #6c757d !important;
}

.task-card-closed .field-label,
.task-card-closed .field-value {
    color: #6c757d !important;
}

/* Task Card Actions */
.task-card-actions {
    display: none; /* Alapértelmezetten rejtett */
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Task Card Actions csak akkor látható, ha a task-card-content expanded */
.task-card-content.expanded ~ .task-card-actions {
    display: flex;
}






.timeline-hour-slot:hover {
    background: #f8f9fa;
}

.timeline-task {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
}

.timeline-task:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateX(2px);
    z-index: 20;
}

.timeline-task-time {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 2px;
}

.timeline-task-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Task Status Cards */
.task-status-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-card-item {
    flex: 1;
    min-width: 150px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.status-card-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.status-card-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.status-card-count {
    font-size: 24px;
    font-weight: 700;
    color: #506980;
}

/* Task Filters */
.task-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

/* Responsive Task Filters */
@media (max-width: 768px) {
    .task-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px 16px;
    }
    
    .filter-group {
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Responsive Calendar */
/* Duplikált responsive calendar stílusok törölve - már definiálva van a 1714-es sorban */

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    background: #506980;
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Task Form - Base + Child Elements */
.task-form .form-group {
    margin-bottom: 20px;
}

.task-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.task-form input,
.task-form textarea,
.task-form select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.datetime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.coordinates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.coordinate-input label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.reminder-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.reminder-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reminder-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
}

.preset-checkbox input[type="checkbox"] {
    width: auto;
}

.upload-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #218838;
}

.attachment-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.attachment-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.attachment-placeholder {
    color: #6c757d;
    font-size: 14px;
}

.attachment-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== ADDITIONAL BUTTON STYLES ===== */

/* System Selector for Maintenance Edit */
.system-selector {
    display: none; /* Alapértelmezetten rejtve */
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* System selector at top of edit page */
.system-selector-top {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.system-selector-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-selector-top .system-selector-message {
    font-size: 14px;
    color: #495057;
    margin-bottom: 8px;
}

.system-selector-top .form-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.system-selector > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.system-selector .system-selector-message {
    margin-bottom: 15px;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.system-selector .form-select {
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid #2196F3;
    background: white;
    color: #333;
    font-size: 14px;
    border-radius: 25px;
    margin-bottom: 15px;
}

.system-selector .form-select:focus {
    outline: none;
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.system-selector > div > div:last-child {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Add Task Button - használja .btn-primary osztályt */
.add-task-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 40px;
}

.add-task-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.add-task-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* ===== TASKS MAP STYLES ===== */

/* Map Container */
.map-wrapper {
    position: relative;
    height: calc(100vh - 200px);
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* View Toggle Buttons */
.view-toggle-group {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.view-toggle-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-toggle-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.view-toggle-btn.active {
    background: #506980;
    color: white;
    border-color: #506980;
}

.view-toggle-btn.active img {
    filter: brightness(0) invert(1) !important;
}

.view-toggle-btn img {
    width: 16px;
    height: 16px;
}

/* Tasks Sidebar */
.tasks-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.tasks-sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tasks-sidebar .sidebar-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tasks-sidebar .sidebar-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

#tasksList {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Task Item */
.task-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-item:hover {
    border-color: #506980;
    box-shadow: 0 2px 4px rgba(80, 105, 128, 0.1);
}

.task-item.active {
    border-color: #506980;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(80, 105, 128, 0.2);
}

.task-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.task-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-item-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
}

.task-item-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Task item images - smaller size for images view */
.task-item img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Images sidebar specific styling */
.images-sidebar .task-item img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Images View */
.images-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
}

.images-view.active {
    display: flex;
}

.images-view-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.images-sidebar {
    width: 400px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: none;
    flex-direction: column;
}

.images-sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.images-sidebar .sidebar-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.images-sidebar .sidebar-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

#imagesList {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.images-map-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

#imagesMap {
    width: 100%;
    flex: 1;
}

.images-info {
    width: 100%;
    flex-shrink: 0;
}

/* Map Content */
.map-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #506980;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Panel */
.filter-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 250px;
}

.filter-panel h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    background: white;
}

.btn-filter {
    background: #506980;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #3d5266;
    transform: translateY(-1px);
}

/* Map Status and Priority Tags */
.map-status-tag, .map-priority-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.map-status-new { background: #e3f2fd; color: #1976d2; }
.map-status-progress { background: #fff3e0; color: #f57c00; }
.map-status-waiting { background: #fce4ec; color: #c2185b; }
.map-status-completed { background: #e8f5e8; color: #388e3c; }
.map-status-closed { background: #f3e5f5; color: #7b1fa2; }

.map-priority-asap { background: #f3e5f5; color: #7b1fa2; }
.map-priority-24h { background: #ffebee; color: #d32f2f; }
.map-priority-72h { background: #e8f5e8; color: #388e3c; }
.map-priority-schedule { background: #e3f2fd; color: #1976d2; }
.map-priority-together { background: #f3e5f5; color: #7b1fa2; }
.map-priority-next { background: #f1f8e9; color: #689f38; }

/* Popup Content */
.popup-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.popup-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Custom Marker - Leaflet override */
.leaflet-marker-icon.custom-marker {
    background: #506980;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    line-height: 1;
    text-align: center;
}

.leaflet-marker-icon.custom-marker div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

/* Popup Link Styling - Leaflet popup override */
.leaflet-popup-content .popup-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #506980;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content .popup-content a:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content .popup-content a img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

/* ===== MAINTENANCE IMAGES STYLES ===== */

/* Location Card */
.location-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.location-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.location-card-avatar {
    width: 60px;
    height: 60px;
    background: #506980;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.location-card-avatar img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.location-card-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.location-card-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-card-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
}

.location-card-address {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

/* Images Grid */
.maintenance-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.image-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.image-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .image-item-overlay {
    opacity: 1;
}

.image-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.image-action-btn img {
    width: 18px;
    height: 18px;
    margin: 0;
    transform: none;
}

.image-action-btn.delete-btn {
    background: rgba(220, 53, 69, 0.9);
}

.image-action-btn.delete-btn:hover {
    background: rgba(220, 53, 69, 1);
}

.image-action-btn.delete-btn img {
    filter: brightness(0) invert(1);
}

.image-item-info {
    padding: 10px;
    background: white;
}

.image-item-name {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 5px 0;
    word-break: break-all;
}

.image-item-date {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-item-date img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Empty State */
.maintenance-images-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px dashed #dee2e6;
}

.empty-icon img {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.maintenance-images-empty h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: #6c757d;
}

.maintenance-images-empty p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

/* Upload Section */
.upload-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px;
    display: none;
}

.upload-section.active {
    display: block;
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: #506980;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.upload-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.upload-text {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #6c757d;
}

.upload-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===== IMAGE VIEWER STYLES ===== */
.image-viewer-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.image-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.image-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.image-actions {
    display: flex;
    gap: 10px;
}

.image-display-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 500px;
    max-height: 70vh;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
}

.image-container img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-btn img {
    width: 24px;
    height: 24px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: auto;
    border-top: 1px solid #e9ecef;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    border-color: #506980;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #506980;
    box-shadow: 0 0 0 2px rgba(80, 105, 128, 0.2);
}

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

/* Responsive image viewer */
@media (max-width: 768px) {
    .image-viewer-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .image-display-container {
        min-height: 300px;
        max-height: 50vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn img {
        width: 20px;
        height: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .thumbnail-strip {
        padding: 15px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}


/* No Tasks Message */
.no-tasks-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* Split View */
.split-view .map-content {
    margin-left: 350px;
}

.split-view .tasks-sidebar {
    display: flex;
}

/* Mobile View Button */
.mobile-view-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.mobile-view-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.mobile-view-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(0.5);
}

.mobile-view-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-left: 8px;
}

/* Search Clear Button */
.search-clear-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.search-clear-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.5);
}

/* Pagination Navigation Arrows */
.nav-arrow {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Disabled Button State */
.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== PERMISSIONS PAGE STYLES ===== */

/* Permissions Tabs */
.permissions-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

.permissions-tabs .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.permissions-tabs .btn-secondary.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.permissions-tabs .btn-secondary.active img {
    filter: brightness(0) invert(1);
}

/* Assignment Cards */
.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.assignment-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.assignment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.assignment-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.assignment-location img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.assignment-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.assignment-user,
.assignment-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignment-user img,
.assignment-category img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.assignment-user strong {
    color: #2c3e50;
    font-weight: 600;
}

.assignment-user small {
    color: #6c757d;
    font-size: 12px;
}

.assignment-category span {
    color: #495057;
    font-size: 14px;
}

.assignment-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.assignment-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.assignment-count img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.count-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.assignment-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.assignment-summary img {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Card Arrow */
.card-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

/* Client Assignment Details */
.client-assignment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.client-assignment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.assignment-checkbox {
    display: flex;
    align-items: center;
}

.assignment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-name,
.system-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-name img,
.system-category img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.location-name strong {
    color: #2c3e50;
    font-weight: 600;
}

.location-name small {
    color: #6c757d;
    font-size: 12px;
}

.system-category span {
    color: #495057;
    font-size: 14px;
}

/* Group Assignment Details */
.assignment-details-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.assignment-details-card h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.detail-item strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.detail-item span {
    color: #495057;
    font-size: 14px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.member-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.member-info strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.member-info small {
    color: #6c757d;
    font-size: 12px;
}

.empty-members {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.loading-spinner {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Group Assignment Explanation */
.group-assignment-explanation {
    margin-bottom: 20px;
}

.explanation-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.explanation-card img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
    margin-top: 4px;
}

.explanation-text h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.explanation-text p {
    margin: 0 0 12px 0;
    color: #495057;
    line-height: 1.5;
}

.explanation-text ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.explanation-text li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Permissions Subtitle */
.permissions-subtitle {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

/* ===== FORM STYLES ===== */

/* Form Container */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

/* Form Labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

/* Form Elements - egységes kerekített stílusok */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}


/* Select és textarea specifikus tulajdonságok */
.form-select,
select {
    cursor: pointer;
}

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

/* Focus állapot */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
}

@media (min-width: 1024px) {
    .form-input:focus, .form-select:focus, .form-textarea:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="password"]:focus, textarea:focus {
        outline: none;
        background: #ffffff;
    }
    
    .btn-action {
        margin: 2px;
    }
}

/* Disabled állapot */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
input[type="password"]:disabled,
textarea:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Form Help Text */
.form-help {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Location Search Container & Autocomplete */
.location-search-container {
    position: relative;
}

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.autocomplete-item:hover {
    background: linear-gradient(to right, #fff4e6, #ffffff);
    border-left: 3px solid var(--primary-color);
    padding-left: 13px;
}

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

.autocomplete-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.autocomplete-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.autocomplete-item-main {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.autocomplete-item-sub {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== DUPLICATE WARNING STYLES ===== */
.duplicate-warning {
    display: none;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    position: relative;
    z-index: 1000;
}

.duplicate-warning.active {
    display: block;
}

.duplicate-warning-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.duplicate-warning-message {
    color: #856404;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.duplicate-warning-details {
    background: white;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

.duplicate-warning-details strong {
    color: #856404;
    font-weight: 600;
}

.duplicate-warning-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.btn-warning-use {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.btn-warning-use:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-warning-ignore {
    background: #ffc107;
    color: #000;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning-ignore:hover {
    background: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.autocomplete-no-results {
    padding: 12px 16px;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.location-dropdown.active {
    display: block;
}

.location-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.location-item:hover {
    background-color: #f8f9fa;
}

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

.location-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.location-address {
    font-size: 12px;
    color: #6c757d;
}

/* System Selection */
.system-selection {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}


.system-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0.5);
}


/* ===== MAINTENANCE ADD/EDIT FORM STYLES ===== */

/* Alapadatok összegző szekció */
.maintenance-summary-collapsible {
    margin: 20px auto;
    max-width: 800px;
}

.maintenance-summary-collapsible .summary-header {
    cursor: pointer;
    padding: 15px;
    background: #506980;
    border-radius: 8px;
    border: 2px solid #506980;
    transition: background 0.3s ease;
}

.maintenance-summary-collapsible .summary-header:hover {
    background: #3a4a5a;
}

.maintenance-summary-collapsible .summary-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-summary-collapsible .summary-header #summaryChevron {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    filter: brightness(0) invert(1);
}

.maintenance-summary-collapsible .summary-content {
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.maintenance-summary-collapsible .summary-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    border: none;
}

.maintenance-summary-collapsible .summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.maintenance-summary-collapsible .summary-item:last-child {
    border-bottom: none;
}

.maintenance-summary-collapsible .summary-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

/* Időszakos karbantartás form */
.maintenance-yearly-title {
    margin: 20px 0;
    padding: 15px;
    background: #e74c3c;
    color: white;
    text-align: center;
    border-radius: 8px;
}

.maintenance-yearly-questions {
    margin: 20px 0;
}

.maintenance-question-item {
    margin-bottom: 15px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.maintenance-question-text {
    flex: 1;
    min-width: 200px;
    font-weight: 500;
}

.maintenance-state-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 120px;
    font-weight: 500;
}

.maintenance-datetime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.maintenance-datetime-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e74c3c;
}

.maintenance-notes-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.maintenance-notes-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.maintenance-notes-label-spacing {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: bold;
}

.maintenance-image-upload {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e74c3c;
}

.maintenance-image-upload h4 {
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.maintenance-image-upload-info {
    margin-bottom: 15px;
}

.maintenance-image-upload-help {
    color: #666;
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}

.maintenance-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.maintenance-form-title {
    margin: 20px 0;
    color: #2c3e50;
}

/* Final submit button */
.maintenance-final-submit {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 160px;
    font-weight: 600;
    font-size: 16px;
}

/* Full width submit button for add_maintenance and edit_maintenance */
.page-add_maintenance .form-actions-right .maintenance-final-submit,
.page-edit_maintenance .form-actions-right .maintenance-final-submit {
    width: 100%;
}

/* Dynamic state colors */
.maintenance-final-submit[data-state="megfelelt"] {
    background-color: #28a745;
    color: white;
}

.maintenance-final-submit[data-state="nem-megfelelt"] {
    background-color: #dc3545;
    color: white;
}

/* Form actions right aligned */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
    justify-content: flex-end;
}

.form-actions button {
    min-width: 140px;
    justify-content: center;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
}

/* Full width button */
.btn-full-width {
    width: 100%;
}

/* Hidden elements by default (JavaScript controls visibility) */
#systemSelectionRow {
    display: none;
}

#detailedFormSection {
    display: block;
}

#summarySystemRow {
    display: none;
}

/* Icon sizes for maintenance form */
.maintenance-icon-20 {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.maintenance-icon-16 {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.maintenance-icon-24 {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #506980;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(80, 105, 128, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}


.back-to-top-btn:hover {
    background: #3d5266;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(80, 105, 128, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(80, 105, 128, 0.3);
}

.back-to-top-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover img {
    transform: translateY(-1px);
}

/* ===== NOTIFICATION STYLES ===== */

.notification-container {
    position: fixed;
    top: 70px; /* Header alatt fix helyen */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 500px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 0; /* Csak 1 notification, nincs margin */
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    width: 100%;
    border: none;
    background: white;
    color: #212549;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Support both .notification-success and .notification.success */
/* Nincs háttérszín, csak szöveg és ikon színezése */
.notification-error,
.notification.error {
    background: white !important; /* Fehér háttér */
    color: #dc3545 !important; /* Piros szöveg */
}

.notification-success,
.notification.success {
    background: white !important; /* Fehér háttér */
    color: #28a745 !important; /* Zöld szöveg */
}

.notification-warning,
.notification.warning {
    background: white !important; /* Fehér háttér */
    color: #f59e0b !important; /* Narancssárga szöveg */
    border: none !important;
}

/* Warning message már be van állítva a notification-warning osztályban */

.notification.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px !important;
}

.notification-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Ikonok színezése (nincs invert, közvetlen színezés) */
.notification-success .notification-icon img,
.notification.success .notification-icon img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(92%) saturate(1235%) hue-rotate(90deg) brightness(97%) contrast(85%) !important; /* Zöld */
}

.notification-error .notification-icon img,
.notification.error .notification-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(6362%) hue-rotate(342deg) brightness(91%) contrast(89%) !important; /* Piros */
}

.notification-warning .notification-icon img,
.notification.warning .notification-icon img {
    filter: brightness(0) saturate(100%) invert(65%) sepia(90%) saturate(3080%) hue-rotate(356deg) brightness(101%) contrast(96%) !important; /* Narancssárga */
}

.notification-message {
    flex: 1;
    color: inherit;
    margin-left: 0 !important;
}

/* Szöveg színezése már be van állítva a notification-success/error/warning osztályokban */

.notification-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin-left: 8px;
}

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

/* Close gomb ikon - szürke marad */
.notification-close img {
    filter: brightness(0) saturate(100%) invert(50%) !important; /* Szürke */
}

.notification-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* ===== MAINTENANCE FORM STYLES ===== */

/* CSS-ből eltávolítva - inline style-ok használata a PHP-ban */

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Duplikált form stílusok törölve - a fenti kerekített verzió használatos */

/* Maintenance form specifikus CSS-ek törölve - inline style-ok használata */

/* ===== PROFILE PAGE STYLES ===== */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Systems page - wider container (override default 800px limit) */
body.page-systems .content-main .profile-container {
    max-width: 100%;
    padding: 0 20px;
}

/* Systems page - count badge balra igazítás, szöveg előtt */
body.page-systems .card-header {
    justify-content: flex-start;
    gap: 12px;
}

body.page-systems .card-header .card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
}

body.page-systems .card-header .card-actions {
    order: 1;
    margin-left: 0;
    margin-right: 0;
}

body.page-systems .card-header .card-arrow {
    order: 3;
    margin-left: auto;
}

/* Systems page - assignment cards 100% szélesség, egymás alatt */
body.page-systems .assignments-grid {
    grid-template-columns: 1fr;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.card-header:hover {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: #333;
    stroke: #333;
}

.required-badge {
    color: #dc3545;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    display: inline;
    margin-left: 2px;
}

.card-arrow {
    width: 20px;
    height: 20px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.card-content {
    padding: 20px;
    transition: all 0.3s ease;
}

.card-content.collapsed {
    display: none;
}

/* Signature styles */
.signature-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.signature-canvas {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
}

.signature-controls {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* .btn-clear-signature - használja .btn-danger osztályt */

/* Info grid styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* .info-item - használja .detail-row osztályt */
/* .info-value - használja .detail-value osztályt */

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* ===== CERTIFICATES PAGE STATUS BADGES ===== */
/* Separate styles for certificates page status badges to avoid conflicts with header #status-badge */
.page-certificates .status-badge,
.certificates-page .status-badge {
    padding: 0px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: none;
}

.page-certificates .status-badge.status-valid,
.certificates-page .status-badge.status-valid {
    background: #10b981;
    color: white;
}

.page-certificates .status-badge.status-expired,
.certificates-page .status-badge.status-expired {
    background: #ef4444;
    color: white;
}

.page-certificates .status-badge.status-warning,
.certificates-page .status-badge.status-warning {
    background: #f59e0b;
    color: white;
}

.page-certificates .status-badge.status-info,
.certificates-page .status-badge.status-info {
    background: #3b82f6;
    color: white;
}

/* Ensure header status-badge doesn't get certificates styles */
#status-badge {
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

/* Assignment styles */
.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.assignment-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.company-assignment {
    border-left: 4px solid #007bff;
}

.location-assignment {
    border-left: 4px solid #28a745;
}

.company-info,
.location-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.assignment-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.company-email,
.location-city {
    font-size: 12px;
    color: #6c757d;
}

.client-name {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.assignment-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.assignment-type.assigned {
    background: #e3f2fd;
    color: #1976d2;
}

.assignment-type.inherited {
    background: #fff3e0;
    color: #f57c00;
}

.assignment-type.created {
    background: #e8f5e8;
    color: #2e7d32;
}

.assigned-by {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.no-assignments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* .form-hint - használja .form-help osztályt */

/* .alert - használja .notification osztályt */
/* .alert-success - használja .notification.success osztályt */
/* .alert-error - használja .notification.error osztályt */
/* .alert-icon - használja .notification-icon osztályt */

/* ===== ACTION BUTTONS ===== */

/* Egységes action gombok - csak ikonokkal, #506980 háttérrel */

/* Action buttons - consolidated styles */
.client-actions .btn-edit,
.client-actions .btn-view,
.client-actions .btn-delete,
.client-actions .btn-print,
.client-actions .btn-qr,
.client-actions .btn-images,
.task-actions .btn-edit,
.task-actions .btn-view,
.task-actions .btn-delete,
.task-actions .btn-print,
.task-actions .btn-qr,
.task-actions .btn-images,
.system-actions .btn-edit,
.system-actions .btn-view,
.system-actions .btn-delete,
.system-actions .btn-qr {
    background: #506980;
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-actions .btn-edit:hover,
.client-actions .btn-view:hover,
.client-actions .btn-delete:hover,
.client-actions .btn-print:hover,
.client-actions .btn-qr:hover,
.client-actions .btn-images:hover,
.task-actions .btn-edit:hover,
.task-actions .btn-view:hover,
.task-actions .btn-delete:hover,
.task-actions .btn-print:hover,
.task-actions .btn-qr:hover,
.task-actions .btn-images:hover,
.system-actions .btn-edit:hover,
.system-actions .btn-view:hover,
.system-actions .btn-delete:hover,
.system-actions .btn-qr:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

/* Action button icons - teljesen fehér */
.btn-action {
    background: #506980;
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.btn-action img,
.btn-edit img,
.btn-view img,
.btn-delete img,
.btn-copy img,
.btn-print img,
.btn-qr img,
.btn-images img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* ===== CERTIFICATES PAGE ACTION BUTTONS ===== */
/* Default button styles - same as other pages */
.page-certificates .btn-action,
.page-certificates button.btn-action,
.page-certificates a.btn-action {
    background: #506980;
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-certificates .btn-action:hover,
.page-certificates .btn-action:active,
.page-certificates button.btn-action:hover,
.page-certificates button.btn-action:active,
.page-certificates a.btn-action:hover,
.page-certificates a.btn-action:active {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

/* Delete button - same style as other action buttons */
.page-certificates .btn-action.btn-delete,
.page-certificates button.btn-action.btn-delete,
.page-certificates a.btn-action.btn-delete {
    background: #506980;
    border-radius: 8px;
}

.page-certificates .btn-action.btn-delete:hover,
.page-certificates .btn-action.btn-delete:active,
.page-certificates button.btn-action.btn-delete:hover,
.page-certificates button.btn-action.btn-delete:active,
.page-certificates a.btn-action.btn-delete:hover,
.page-certificates a.btn-action.btn-delete:active {
    background: #3d5266;
}

/* All button icons - white */
.page-certificates .btn-action img,
.page-certificates .btn-edit img,
.page-certificates .btn-delete img,
.page-certificates button.btn-action img,
.page-certificates button.btn-edit img,
.page-certificates button.btn-delete img,
.page-certificates a.btn-action img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
    display: block;
}

/* ===== CERTIFICATES PAGE TABLE STYLES ===== */
.certificates-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: none; /* Hidden by default - only shown when list view is selected */
}

/* Show table only when list view is active (handled by JavaScript, but backup CSS rule) */
.certificates-table-container[style*="display: block"] {
    display: block !important;
}

.certificates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.certificates-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
}

.certificates-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificates-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.certificates-table tbody tr:hover {
    background: #f8f9fa;
}

.certificates-table tbody tr:last-child {
    border-bottom: none;
}

.certificates-table td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #495057;
}

/* User cell styles */
.certificates-table .user-cell {
    padding: 12px;
}

.certificates-table .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.certificates-table .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #506980, #3a4a5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}

.certificates-table .user-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

/* Table action buttons */
.certificates-table .table-action-btn {
    background: #506980;
    color: white;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.certificates-table .table-action-btn:last-child {
    margin-right: 0;
}

.certificates-table .table-action-btn:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.certificates-table .table-action-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.certificates-table .actions-cell {
    white-space: nowrap;
}

/* Cert number styles */
.certificates-table .cert-number {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* Status badge in table */
.certificates-table .status-badge {
    padding: 0px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: none;
}

.certificates-table .status-badge.status-valid {
    background: #10b981;
    color: white;
}

.certificates-table .status-badge.status-expired {
    background: #ef4444;
    color: white;
}

.certificates-table .status-badge.status-warning {
    background: #f59e0b;
    color: white;
}

.certificates-table .status-badge.status-info {
    background: #3b82f6;
    color: white;
}

/* Hide list-data elements on desktop (they're duplicates, only needed for mobile list view) */
.page-certificates .list-data-issue,
.page-certificates .list-data-expiry,
.page-certificates .list-data-status,
.page-certificates .list-data-cert-nr,
.certificates-page .list-data-issue,
.certificates-page .list-data-expiry,
.certificates-page .list-data-status,
.certificates-page .list-data-cert-nr {
    display: none;
}

/* ===== CLIENTS PAGE TABLE STYLES ===== */
.clients-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: none; /* Hidden by default - only shown when list view is selected */
}

/* Show table only when list view is active (handled by JavaScript, but backup CSS rule) */
.clients-table-container[style*="display: block"] {
    display: block !important;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.clients-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
}

.clients-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients-table th:first-child {
    text-align: left;
}

.clients-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.clients-table tbody tr:hover {
    background: #f8f9fa;
}

.clients-table tbody tr:last-child {
    border-bottom: none;
}

.clients-table td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #495057;
}

/* Client cell styles */
.clients-table .client-cell {
    padding: 12px;
    text-align: left;
}

.clients-table .client-info {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.clients-table .client-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    text-align: left;
}

/* Hide avatar in table list view */
.clients-table .client-avatar {
    display: none;
}

.clients-table .location-count {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

/* Table action buttons */
.clients-table .table-action-btn {
    background: #506980;
    color: white;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.clients-table .table-action-btn:last-child {
    margin-right: 0;
}

.clients-table .table-action-btn:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.clients-table .table-action-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.clients-table .actions-cell {
    white-space: nowrap;
}

/* ===== LOCATIONS PAGE TABLE STYLES ===== */
.locations-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: none; /* Hidden by default - only shown when list view is selected */
}

/* Show table only when list view is active (handled by JavaScript, but backup CSS rule) */
.locations-table-container[style*="display: block"] {
    display: block !important;
}

.locations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.locations-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
}

.locations-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.locations-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.locations-table tbody tr:hover {
    background: #f8f9fa;
}

.locations-table tbody tr:last-child {
    border-bottom: none;
}

.locations-table td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #495057;
}

/* Location cell styles */
.locations-table .location-cell {
    padding: 12px;
    text-align: left;
}

.locations-table .location-info {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.locations-table .location-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    text-align: left;
}

.locations-table .client-name-value,
.locations-table .city-value,
.locations-table .zip-value {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

/* Table action buttons */
.locations-table .table-action-btn {
    background: #506980;
    color: white;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.locations-table .table-action-btn:last-child {
    margin-right: 0;
}

.locations-table .table-action-btn:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.locations-table .table-action-btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.locations-table .actions-cell {
    white-space: nowrap;
}

/* ===== TASKS PAGE LIST VIEW TABLE STYLES ===== */
.list-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.task-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.task-list-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
}

.task-list-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-list-table th:last-child {
    text-align: center;
}

.task-list-table tbody tr {
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

.task-list-table tbody tr:hover {
    background: #f8f9fa;
}

.task-list-table tbody tr:last-child {
    border-bottom: none;
}

.task-list-table td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #495057;
}

.task-list-table .task-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.task-list-table .task-system,
.task-list-table .task-client,
.task-list-table .task-location,
.task-list-table .task-assigned {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.task-list-table .task-due-date {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.task-list-table .task-priority {
    text-align: center;
}

.task-list-table .priority-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-list-table .priority-flag {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%);
}

.task-list-table .priority-flag.priority-high {
    filter: brightness(0) saturate(100%) invert(20%) sepia(94%) saturate(6362%) hue-rotate(342deg) brightness(91%) contrast(89%);
}

.task-list-table .priority-flag.priority-medium {
    filter: brightness(0) saturate(100%) invert(60%) sepia(98%) saturate(2879%) hue-rotate(211deg) brightness(102%) contrast(97%);
}

.task-list-table .priority-flag.priority-low {
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.task-list-table .task-actions {
    white-space: nowrap;
    text-align: center;
    padding: 14px 12px;
}

.task-list-table .task-actions .action-btn,
.task-list-table td.task-actions .action-btn,
.task-list-table .task-actions button.action-btn {
    background: #506980 !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0 !important;
}

.task-list-table .task-actions .action-btn:hover,
.task-list-table .task-actions .action-btn:active,
.task-list-table td.task-actions .action-btn:hover,
.task-list-table td.task-actions .action-btn:active,
.task-list-table .task-actions button.action-btn:hover,
.task-list-table .task-actions button.action-btn:active {
    background: #3d5266 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.task-list-table .task-actions .action-btn img,
.task-list-table td.task-actions .action-btn img,
.task-list-table .task-actions button.action-btn img {
    filter: brightness(0) invert(1) !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
    display: block !important;
}

.task-list-table .task-list-row {
    border-left: 4px solid transparent;
}

/* ===== QR CODES STYLES ===== */
.qr-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.qr-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.qr-card-main-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-card-image {
    text-align: center;
    position: relative;
}

.qr-card-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
}

.qr-card-group-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
}

.qr-card-group-badge img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.qr-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.qr-card-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.qr-card-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

.qr-card-url {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3498db;
    margin-top: 8px;
}

.qr-card-url img {
    width: 14px;
    height: 14px;
}

.qr-card-url small {
    word-break: break-all;
}

.qr-card-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.qr-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
}

.qr-stat img {
    width: 16px;
    height: 16px;
    filter: grayscale(1);
}

.qr-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.qr-card-status.active {
    background: #2ecc71;
    color: white;
}

.qr-card-status.inactive {
    background: #e74c3c;
    color: white;
}

.qr-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.qr-action-btn {
    flex: 1;
    background: #506980;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-action-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.qr-action-btn:hover {
    background: #3d5266;
    transform: translateY(-1px);
}

.qr-card.inactive {
    opacity: 0.6;
}

.qr-card-group {
    cursor: pointer;
}

/* QR Hozzárendelési információk */
.qr-assignments-info {
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.qr-assignments-info.empty {
    border: none;
    padding: 4px 0;
}

.qr-assignment-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #506980;
}

.qr-assignment-item:last-child {
    margin-bottom: 0;
}

.qr-assignment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qr-assignment-details strong {
    font-size: 13px;
    color: #506980;
    font-weight: 600;
}

.qr-assignment-details span {
    font-size: 12px;
    color: #64748b;
}

.qr-assignment-details small {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.qr-assignment-system {
    font-size: 12px;
    color: #506980;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.qr-assignment-category {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
    font-style: italic;
}

.empty-state-qr {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-qr img {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state-qr p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
}

.loading-message .spinner {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message p {
    margin-top: 15px;
    color: #7f8c8d;
}

/* Form Loading Overlay - Karbantartás és Üzemeltetői formákhoz */
.form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.form-loading-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-loading-content .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #506980;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.form-loading-content p {
    margin: 0;
    color: #506980;
    font-size: 16px;
    font-weight: 500;
}

/* ===== QR GROUP STATS ===== */
.qr-group-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.qr-group-stat-item {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-group-stat-item img {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

.qr-group-stat-info {
    flex: 1;
}

.qr-group-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.qr-group-stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.qr-codes-container {
    margin-top: 20px;
}





/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.background-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

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

.company-logo {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 10px;
}

.company-logo p {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    color: #c62828;
    margin-bottom: 5px;
    font-size: 14px;
}

.alert-content p {
    margin: 0;
    color: #d32f2f;
    font-size: 13px;
}

.alert-success strong,
.alert-success p {
    color: #2e7d32;
}

.device-verification-alert {
    background: var(--primary-color, #f39c12);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.device-verification-alert h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.device-verification-alert p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.verification-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.verification-steps strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.verification-steps ol {
    margin: 0;
    padding-left: 20px;
}

.verification-steps li {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    transition: color 0.3s ease;
    z-index: 10;
    min-width: 32px;
    min-height: 32px;
}

.password-toggle:hover {
    color: var(--primary-color, #f39c12);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color, #f39c12);
    outline-offset: 2px;
    border-radius: 4px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    color: inherit;
    vertical-align: middle;
}

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

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color, #f39c12);
}

.checkbox-label {
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color, #f39c12);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-login:hover {
    background-color: var(--primary-hover, #e67e22);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-login:active {
    transform: translateY(1px);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-footer p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .login-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    .login-header h1 {
        font-size: 24px;
    }
    .company-logo img {
        max-width: 200px;
    }
}

/* ===== OFFLINE MANAGER STYLES ===== */

/* Connection Status Bar */
.connection-status-bar {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease;
}

.connection-status-bar:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    font-size: 16px;
    line-height: 1;
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.pending-count {
    font-size: 12px;
    font-weight: 500;
    color: #f59e0b;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.btn-sync {
    background: #506980;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sync:hover {
    background: #3d5266;
    transform: rotate(180deg);
}

.btn-sync:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sync img {
    filter: brightness(0) invert(1);
}

.hidden {
display: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Offline Mode Indicator on Forms */
.form-offline-indicator {
    display: none;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.form-offline-indicator.active {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-offline-indicator img {
    width: 20px;
    height: 20px;
}

/* Sync Status Badge */
.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sync-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.sync-status-badge.synced {
    background: #d1fae5;
    color: #065f46;
}

.sync-status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== INFO CARD STYLES ===== */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
    padding: 20px 24px;
}

.info-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card-header h3 img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.info-card-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== SYSTEMS CONTAINER CARD STYLES ===== */
.systems-container-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.systems-container-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.systems-container-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f1f3f5;
    padding: 20px 24px;
}

.systems-container-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.systems-container-header h3 img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.systems-list-container {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-systems-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* ===== SYSTEM ITEM CARD STYLES ===== */
.system-item-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.system-item-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #506980;
}

.system-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.system-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-category-badge {
    background: linear-gradient(135deg, #506980 0%, #6c8daa 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(80, 105, 128, 0.2);
}

.system-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 8px 0;
}

.system-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.system-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.system-detail-label {
    color: #6c757d;
    font-weight: 500;
}

.system-detail-value {
    color: #2c3e50;
    font-weight: 600;
}

/* system-item-actions gombok - az alapértelmezett btn-action stílust használják (mint a systems oldalon) */
.system-item-actions .btn-action {
    background: #506980;
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.system-item-actions .btn-action:hover {
    background: #3d5266;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(80, 105, 128, 0.3);
}

.system-item-actions .btn-action img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

/* ===== DOCUMENTS PAGE STYLES ===== */
.page-documents {
    padding: 20px 0;
}

.documents-container {
    width: 100%;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.document-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.document-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.document-type img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.document-type .type-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.document-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.document-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.document-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.document-address {
    font-size: 13px;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

.maintenance-summary {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.maintenance-count {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.maintenance-count strong {
    color: #506980;
}

.maintenance-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.type-tag {
    background: #506980;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-types {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.system-types strong {
    font-size: 13px;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.system-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.document-actions {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.document-actions button {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-actions button img {
    width: 20px;
    height: 20px;
}

.document-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.document-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.document-actions .btn-info {
    background: #17a2b8;
    color: white;
}

.document-actions .btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Empty state */
.page-documents .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.page-documents .empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.5;
    filter: brightness(0) saturate(100%) invert(40%) sepia(8%) saturate(1200%) hue-rotate(169deg) brightness(95%) contrast(86%);
}

.page-documents .empty-state h3 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 10px;
}

.page-documents .empty-state p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* QR SCANNER STÍLUSAI - CSAK MOBILON */
@media (max-width: 768px) {
    .scanner-container {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 16px auto;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        display: none;
    }
    
    .scanner-container.active {
        display: block;
    }
    
    #qr-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        max-width: 100%;
        max-height: 100%;
    }
    
    /* Scanning Frame - Célzó keret */
    .scanner-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        height: 70%;
        border: 3px solid #10b981;
        border-radius: 12px;
        pointer-events: none;
        z-index: 10;
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
        animation: scanner-pulse 2s ease-in-out infinite;
    }
    
    .scanner-frame::before,
    .scanner-frame::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 3px solid #10b981;
    }
    
    .scanner-frame::before {
        top: -3px;
        left: -3px;
        border-right: none;
        border-bottom: none;
        border-top-left-radius: 12px;
    }
    
    .scanner-frame::after {
        bottom: -3px;
        right: -3px;
        border-left: none;
        border-top: none;
        border-bottom-right-radius: 12px;
    }
    
    @keyframes scanner-pulse {
        0%, 100% {
            opacity: 1;
            border-color: #10b981;
        }
        50% {
            opacity: 0.7;
            border-color: #34d399;
        }
    }
    
    .scanner-line {
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 2px;
        background: linear-gradient(to bottom, transparent, #10b981, transparent);
        animation: scanner-line-scan 2s linear infinite;
        z-index: 11;
    }
    
    @keyframes scanner-line-scan {
        0% {
            top: 15%;
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
        100% {
            top: 85%;
            opacity: 1;
        }
    }
    
    .scanner-status-text {
        display: none;
        text-align: center;
        padding: 12px 16px;
        margin: 12px auto 16px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 500;
        max-width: 300px;
        width: 100%;
    }
    
    .scanner-status-text.info {
        display: block;
        color: #64748b;
        background: #f1f3f5;
        border: 1px solid #e2e8f0;
    }
    
    .scanner-status-text.success {
        display: block;
        color: #10b981;
        background: #d1fae5;
        border: 1px solid #6ee7b7;
    }
    
    .scanner-status-text.error {
        display: block;
        color: #ef4444;
        background: #fee2e2;
        border: 1px solid #fca5a5;
    }
    
    /* Alert üzenetek - kompakt megjelenés */
    .alert-message {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        margin: 12px auto 16px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        max-width: 400px;
        width: 100%;
        text-align: center;
    }
    
    .alert-success-message {
        color: #10b981;
        background: #d1fae5;
        border: 1px solid #6ee7b7;
    }
    
.alert-error-message {
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.alert-info-message {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

/* Desktop-on elrejtjük a scanner-t - asztali gépen nincs kamera */
@media (min-width: 769px) {
    .scanner-container {
        display: none !important;
    }
    
    .scanner-container.active {
        display: none !important;
    }
    
    #start-scanner-btn,
    #stop-scanner-btn {
        display: none !important;
    }
}


.assigned-qrs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assigned-qr-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.assigned-qr-item:hover {
    background: #f1f3f5;
    border-color: #506980;
}

.qr-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.qr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qr-info strong {
    font-size: 16px;
    color: #506980;
    font-weight: 600;
}

.qr-code-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    font-family: monospace;
}

.qr-info small {
    color: #94a3b8;
    font-size: 12px;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #506980;
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider-separator {
    text-align: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
}

.divider-separator span {
    background: white;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.divider-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e2e8f0;
    z-index: 0;
}

.system-info-box {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.system-info-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #506980;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-info-location {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-remove-btn {
    padding: 8px 12px;
    min-width: auto;
}

.icon-16 {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.icon-20 {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* ===== IMAGE MODAL STYLES ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 32px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1000000;
    transition: all 0.2s ease;
}

.image-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.image-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.image-modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    z-index: 1000000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.image-modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-modal-nav-btn img {
    filter: brightness(0) invert(1);
    width: 30px;
    height: 30px;
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-nav-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000000;
    white-space: nowrap;
}
