/**
 * iGreen CRM - Stílusok
 * Moduláris, skálázható, AI-optimalizált
 */

/* Alapértelmezett stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #49ab7c;
    --secondary-color: #3d9168;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* App Layout */
.app-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Header */
.top-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    height: 60px;
    z-index: 200;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 35px;
    width: auto;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.user-label {
    color: #666;
}

.user-name {
    font-weight: 600;
}

.btn-logout {
    background-color: var(--white);
    color: var(--dark-color);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* App Body (Sidebar + Main Content) */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 100;
    height: 100%;
}

.app-content.sidebar-collapsed .sidebar {
    width: 60px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu > li {
    margin: 0;
}

.menu-item-parent {
    position: relative;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #e8e8e8;
}

.menu-item.active {
    background-color: #49ab7c;
    color: var(--white);
}

.menu-item.active .menu-icon svg {
    stroke: var(--white);
}

.menu-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    stroke: #333;
    transition: stroke 0.2s ease;
}

.menu-item:hover .menu-icon svg {
    stroke: #000;
}

.menu-text {
    white-space: nowrap;
    font-weight: 500;
    flex: 1;
    transition: opacity 0.3s ease;
}

.menu-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease, opacity 0.3s ease;
    color: #666;
}

.menu-item-parent.expanded .menu-arrow {
    transform: rotate(90deg);
}

.app-content.sidebar-collapsed .menu-text,
.app-content.sidebar-collapsed .menu-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ebebeb;
}

.menu-item-parent.expanded .submenu {
    max-height: 500px;
    overflow-y: auto;
}

.app-content.sidebar-collapsed .submenu {
    display: none;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem 0.65rem 3rem;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #ddd;
    color: #000;
}

.submenu-item.active {
    background-color: #49ab7c;
    color: var(--white);
}

.submenu-text {
    white-space: nowrap;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* Konténer */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

/* Szekciók */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Settings */
.settings-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.settings-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

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

.settings-actions {
    display: flex;
    gap: 0.75rem;
}

.settings-form {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-form .settings-actions {
    justify-content: flex-end;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table th,
.settings-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--light-color);
    text-align: left;
}

.settings-table th {
    background: var(--light-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.settings-table tbody tr:hover {
    background: rgba(73, 171, 124, 0.08);
}

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

.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

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

.permission-card {
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.permission-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

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

.permission-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.permission-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

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

.role-slug {
    color: rgba(44, 62, 80, 0.7);
    margin-top: 0.25rem;
}

/* Statisztika kártyák */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

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

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

/* Értesítések */
#notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--white);
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background-color: var(--primary-color);
}

.notification-error {
    background-color: var(--danger-color);
}

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

.notification.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Betöltés jelző */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

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

/* Gombok */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background-color: #95a5a6;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

/* Szekció fejléc */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
}

/* Page header (for dynamically generated pages like katalógus) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--dark-color);
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.page-content {
    padding: 0 2rem;
}

/* Szűrők */
.filters-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
}

/* Ügyfél táblázat */
.customer-table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.customer-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.customer-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-table tbody tr {
    border-bottom: 1px solid var(--light-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.customer-table tbody tr:hover {
    background-color: #f8f9fa;
}

.customer-table td {
    padding: 1rem;
    color: var(--dark-color);
}

.customer-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-type-badge.vallalati {
    background: #3498db;
    color: var(--white);
}

.customer-type-badge.lakossagi {
    background: var(--primary-color);
    color: var(--white);
}

.customer-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-status-badge.active {
    background-color: #27ae60;
    color: var(--white);
}

.customer-status-badge.inactive {
    background-color: #95a5a6;
    color: var(--white);
}

/* Üres állapot */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Reszponzív design */
@media (max-width: 768px) {
    /* App body - mobilon nem flex */
    .app-body {
        display: block;
    }

    /* Hamburger menü - rejtett alapértelmezésben */
    .sidebar {
        position: fixed !important;
        left: -250px !important;
        top: 60px;
        bottom: 0;
        z-index: 150;
        width: 250px !important;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        display: flex !important;
    }

    /* Hamburger menü - megnyitva */
    .app-content.sidebar-open .sidebar {
        left: 0 !important;
    }

    /* Overlay a menü mögött */
    .app-content.sidebar-open::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .header-logo {
        height: 30px;
    }

    .user-info {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }
}

    .customer-table-container {
        overflow-x: auto;
    }

    .customer-table {
        font-size: 0.85rem;
    }

    .customer-table th,
    .customer-table td {
        padding: 0.75rem 0.5rem;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-title-row-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .detail-title-left {
        width: 100%;
    }

    .detail-actions-inline {
        width: 100%;
        justify-content: flex-start;
    }

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

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Részletek nézet */
.detail-view {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--light-color);
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

.detail-content {
    text-align: left;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.detail-avatar-small {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-title-info {
    flex: 0 1 auto;
    min-width: 0;
}

.detail-title-info h1 {
    color: var(--dark-color);
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-title-info .customer-type-badge {
    display: inline-block;
    width: auto;
}

/* Egyszerű header */
.detail-header-simple {
    margin-bottom: 1rem;
}

.detail-title-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.detail-title-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.detail-avatar {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-title-text {
    min-width: 0;
}

.detail-title-text h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.detail-title-bar-right {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

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

.detail-sections {
    margin-top: 0;
    text-align: left;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.detail-item span {
    color: var(--dark-color);
    font-size: 1rem;
}

.notes {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Modal */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.modal-content.large {
    max-width: 900px;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close,
.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover,
.btn-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Teljes oldal form */
.form-page {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.form-page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-color);
}

.form-page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.form-page-content {
    max-width: 1000px;
}

.form-page-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form stílusok */
.form-sections {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.form-actions .btn {
    flex: 0 1 auto;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Pagináció */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-controls .btn {
    min-width: 140px;
}

.pagination-status {
    font-weight: 600;
    color: var(--dark-color);
}

/* Autentikáció */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(73, 171, 124, 0.85), rgba(61, 145, 104, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-form .form-group {
    text-align: left;
}

.btn-block {
    width: 100%;
}

.login-hint {
    margin-top: 1rem;
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.9rem;
}

.is-permission-hidden {
    display: none !important;
}

/* Projekt stílus */
.project-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.project-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-info-cards-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.project-description {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.project-description h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.project-description p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
}

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

.info-row label {
    font-weight: 600;
    color: var(--dark-color);
}

.info-row p {
    margin: 0;
    color: #666;
}

/* Quick edit installation date */
#installationDateDisplay {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

#installationDateDisplay:hover {
    background-color: #f0f0f0;
}

#installationDateDisplay:hover i {
    color: var(--primary-color) !important;
}

.editable-field {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.editable-field:hover {
    background-color: #f0f0f0;
}

.editable-field:focus {
    outline: 2px solid var(--primary-color);
    background-color: #fff;
}

.customer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.customer-link:hover {
    color: #3a8a63;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .project-info-cards-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-info-cards {
        grid-template-columns: 1fr;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Projekt tabok */
.project-tabs {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--light-color);
    background: #f9f9f9;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    background: #f0f0f0;
    color: var(--dark-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

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

/* Tabs without header wrapper */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--light-color);
    background: #f9f9f9;
    margin-bottom: 1rem;
}

.tab-content {
    background: white;
}

.project-status-badge,
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Project Status Badges - New Workflow */
.project-status-badge.fogyasztasi_adatra_var { background: #F3F4F6; color: #6B7280; }
.project-status-badge.szimulacio { background: #EDE9FE; color: #8B5CF6; }
.project-status-badge.indikativ_ajanlat { background: #DBEAFE; color: #3B82F6; }
.project-status-badge.helyszini_felmeres { background: #CFFAFE; color: #06B6D4; }
.project-status-badge.vegso_ajanlat { background: #D1FAE5; color: #10B981; }
.project-status-badge.szerzodeskotes { background: #ECFCCB; color: #84CC16; }
.project-status-badge.igenybejelentes { background: #FEF3C7; color: #F59E0B; }
.project-status-badge.mgt { background: #FFEDD5; color: #F97316; }
.project-status-badge.csatlakozasi_dokumentacio { background: #FEE2E2; color: #EF4444; }
.project-status-badge.szolgaltatoi_jovahagyas { background: #FCE7F3; color: #EC4899; }
.project-status-badge.rendszer_kivitelezese { background: #F3E8FF; color: #A855F7; }
.project-status-badge.keszre_jelentes { background: #E0E7FF; color: #6366F1; }
.project-status-badge.csatlakozas_es_uzembehelyezes { background: #CCFBF1; color: #14B8A6; }
.project-status-badge.kesz { background: #DCFCE7; color: #22C55E; }
.project-status-badge.torolve { background: #FEE2E2; color: #DC2626; }

/* Quote and Contract Status Badges */
.status-badge.nincs {
    background: #f5f5f5;
    color: #757575;
}

.status-badge.kikuldve {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.elfogadva,
.status-badge.alairva {
    background: #e8f5e9;
    color: #388e3c;
}

/* Badge variants */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #d32f2f;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-secondary {
    background: #f5f5f5;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .login-card {
        padding: 1.75rem;
    }

    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-container {
        flex-direction: column;
    }

    .settings-content {
        width: 100%;
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   QUOTE FORMS - Minimalistic Modern Design
   ============================================================================ */

.quote-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.quote-form-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Quote header section - minimalistic */
.quote-header-section {
    background-color: white;
    padding: 2rem 2rem 0 2rem;
    border-radius: 12px;
    margin-bottom: 0;
    border: 1px solid #e8e8e8;
}

.quote-total-section {
    background: linear-gradient(135deg, #49ab7c 0%, #3d9168 100%);
    color: white;
    padding: 0 2rem;
    border-radius: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(73, 171, 124, 0.15);
}

.quote-total-section .total-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-total-section .total-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.quote-total-section .total-item {
    text-align: center;
}

.quote-products-section {
    margin: 2rem 0;
}

.quote-products-section > h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Category sections - clean and minimal */
.quote-category-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e8e8e8;
    transition: border-color 0.2s ease;
}

.quote-category-section:hover {
    border-color: #d0d0d0;
}

.quote-category-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-category-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.quote-category-products {
    margin: 1rem 0;
    min-height: 20px;
}

.quote-category-products:empty::after {
    content: 'Még nincsenek termékek ebben a kategóriában';
    color: #999;
    font-size: 0.875rem;
    font-style: italic;
}

/* Quote items - modern card style */
.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.quote-item:hover {
    background-color: #f5f7f9;
    border-color: #e0e0e0;
    transform: translateX(2px);
}

.quote-item-details {
    flex: 1;
}

.quote-item-details strong {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.quote-item-details br + text {
    color: #666;
    font-size: 0.875rem;
}

/* Status badges - minimal and clean */
.quote-status-draft {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quote-status-sent {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quote-status-accepted {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Accepted quote row styling */
tr.quote-row-accepted {
    background-color: #f1f8f4 !important;
}

tr.quote-row-accepted:hover {
    background-color: #e8f5e9 !important;
}

.quote-status-rejected {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Bevételezés status badges */
.bevetelez-status-draft {
    background-color: #f0f0f0;
    color: #666;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bevetelez-status-saved {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bevetelez-status-closed {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal - modern overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Quote form inputs - modern style */
.quote-header-section input,
.quote-header-section select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-header-section input:focus,
.quote-header-section select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.1);
}

.quote-header-section label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

/* Add product button hover effect */
.quote-category-section button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(73, 171, 124, 0.05);
}

/* Empty state for quote products */
.quote-products-section .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote-total-section {
        flex-direction: column;
        gap: 1rem;
    }

    .quote-total-section .total-item {
        text-align: left;
    }

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

/* ============================================================================
   DOCUMENTS SECTION - Minimalistic Modern Design
   ============================================================================ */

.documents-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Upload Section */
.documents-upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-card,
.comment-card {
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.upload-card:hover,
.comment-card:hover {
    border-color: var(--primary-color);
}

.upload-icon,
.comment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-card h3,
.comment-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.upload-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.comment-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    resize: vertical;
    font-family: inherit;
}

.comment-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(73, 171, 124, 0.1);
}

/* Files Section */
.documents-files-section,
.documents-comments-section {
    margin-bottom: 2rem;
}

.documents-files-section h3,
.documents-comments-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.documents-files-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.documents-comments-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Document Category Groups */
.document-category-group {
    margin-bottom: 2.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-badge {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, #49ab7c 0%, #3d9268 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.document-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.document-preview {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.document-preview:hover {
    opacity: 0.9;
}

.document-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.document-info {
    padding: 1.25rem;
}

.document-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.document-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.document-actions .btn {
    flex: 1;
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.document-actions .btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(73, 171, 124, 0.05);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.comment-item:hover {
    border-color: #d0d0d0;
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d9168 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Upload Overlay */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-spinner {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Image Viewer */
.image-viewer {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-viewer img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.image-viewer .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-viewer .close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Project Costs Styles */
.costs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cost-form-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
}

.cost-form-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.costs-list-section {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
}

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

.costs-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.total-cost {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #49ab7c 0%, #3d9268 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
}

.total-cost strong {
    font-size: 1.3rem;
}

.costs-table-wrapper {
    overflow-x: auto;
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
}

.costs-table thead {
    background: #f8f9fa;
}

.costs-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
}

.costs-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.costs-table tbody tr:hover {
    background: #f8f9fa;
}

.category-badge-small {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #555;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.text-muted {
    color: #888;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .documents-upload-section {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

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

    .costs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .costs-table-wrapper {
        overflow-x: scroll;
    }

    .costs-table {
        min-width: 800px;
    }
}

/* Status Dropdown - Jira Style */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.btn-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-status:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.status-fogyasztasi_adatra_var { background-color: #6B7280; }
.status-indicator.status-szimulacio { background-color: #8B5CF6; }
.status-indicator.status-indikativ_ajanlat { background-color: #3B82F6; }
.status-indicator.status-helyszini_felmeres { background-color: #06B6D4; }
.status-indicator.status-vegso_ajanlat { background-color: #10B981; }
.status-indicator.status-szerzodeskotes { background-color: #84CC16; }
.status-indicator.status-igenybejelentes { background-color: #F59E0B; }
.status-indicator.status-mgt { background-color: #F97316; }
.status-indicator.status-csatlakozasi_dokumentacio { background-color: #EF4444; }
.status-indicator.status-szolgaltatoi_jovahagyas { background-color: #EC4899; }
.status-indicator.status-rendszer_kivitelezese { background-color: #A855F7; }
.status-indicator.status-keszre_jelentes { background-color: #6366F1; }
.status-indicator.status-csatlakozas_es_uzembehelyezes { background-color: #14B8A6; }
.status-indicator.status-kesz { background-color: #22C55E; }
.status-indicator.status-torolve { background-color: #DC2626; }

.dropdown-arrow {
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.2s;
}

.btn-status:hover .dropdown-arrow {
    transform: translateY(2px);
}

.status-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.status-dropdown-menu.show {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.status-option:hover {
    background: #f8f9fa;
}

.status-option.active {
    background: #f0f9ff;
    font-weight: 500;
}

.status-option .checkmark {
    margin-left: auto;
    color: #3B82F6;
    font-weight: bold;
}

/* Footer */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    color: #999;
}


