@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Fő stílusok */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE és Edge */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif; /* Roboto betűtípus alkalmazása az egész oldalon */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE és Edge */
}

/* WebKit böngészők (Chrome, Safari, Opera) */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

a {
    text-decoration: none;
}

.footer {
    margin-top: auto;
}

/* Oldalsáv stílusok */
.sidebar {
    
    z-index: 100;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;

}

.sidebar .nav-link {
    font-weight: 400;
    
    color: #333;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover {
    color: #0056b3;
}

.sidebar .nav-link i {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active i {
    color: #007bff;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Kártya stílusok */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* Táblázat stílusok */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* Eszköz adatlap stílusok */
.device-details dt {
    font-weight: 600;
}

.device-details dd {
    margin-bottom: 0.5rem;
}

/* Garancia állapot jelzők */
.warranty-status {
    padding: 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.warranty-active {
    background-color: #d4edda;
    color: #155724;
}

.warranty-expiring {
    background-color: #fff3cd;
    color: #856404;
}

.warranty-expired {
    background-color: #f8d7da;
    color: #721c24;
}

/* Javítási státuszok */
.repair-status-completed {
    color: #28a745;
}

.repair-status-in-progress {
    color: #17a2b8;
}

.repair-status-pending {
    color: #ffc107;
}

/* Fájl lista */
.file-list {
    list-style: none;
    padding-left: 0;
}

.file-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list i {
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Javítási megjegyzések */
.repair-notes {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Eszköz jelszavak - kattintásra megjelenítés */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.password-field input {
    padding-right: 30px;
}

/* Kis képek formázása */
.thumbnail-img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    padding: 2px;
    margin: 5px;
}

/* Képgaléria */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.image-gallery-item {
    width: 150px;
    height: 150px;
    border: 1px solid #dee2e6;
    padding: 3px;
    border-radius: 3px;
    position: relative;
}

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

/* Különböző képernyőméretek kezelése */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        top: 0;
    }
}

.status-card {
    border-radius: 8px;
    overflow: hidden;
}
.status-card .card-header {
    font-size: 0.9rem;
    padding: 0.4rem;
}
.status-list {
    margin-bottom: 0;
}
.status-list .list-group-item {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    background-color: transparent;
}
.status-list .badge {
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Olvasatlan számlák kiemelése */
.table-primary.fw-bold {
    background-color: #cfe2ff !important;
    font-weight: 600 !important;
}

/* Értesítési ikon stílusa a menüpontban */
.nav-link .badge {
    font-size: 0.7rem;
    position: relative;
    top: -1px;
}

/* Olvasatlan jelző a számla listában */
.badge.bg-danger[title="Új számla"] {
    font-size: 10px;
    padding: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

/* Olvasottként jelölés gomb stílusa */
.btn-mark-read {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Optimalizált menü stílusok */

/* Brand stílus */
.navbar-brand .brand-text {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Navbar alap stílusok */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Aktív menüpont kiemelése */
.navbar .nav-link.active {
    font-weight: 600;
    position: relative;
}

.navbar .nav-link.active:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

/* Dropdown menük stílusai */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

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

.dropdown-item.active {
    background-color: #e9ecef;
    color: #007bff;
}

.dropdown-item i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Badge stílusok finomítása */
.badge.bg-danger {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Ikonok egységes méretezése */
.navbar .nav-link i, 
.dropdown-item i {
    font-size: 0.9rem;
}

/* Navbar toggle gomb - mobil nézet */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Mobilnézet optimalizálása */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-item:hover,
    .dropdown-item.active {
        background-color: rgba(0, 0, 0, 0.2);
        color: #fff;
    }
    
    /* A dropdown ikonok jobb szélre helyezése mobil nézetben */
    .navbar .dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Hover effektek - csak desktop nézetre */
@media (min-width: 992px) {
    .navbar .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }
    
    .navbar .nav-link:hover {
        color: #fff;
    }
    
    .navbar .nav-link:hover:after {
        content: '';
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: -5px;
        height: 3px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .navbar .nav-link:hover:after {
        left: 0;
        right: 0;
    }
    
    /* Dropdown menü nyitási animáció */
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }
    
    .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Egyedi badge-ek - értesítések számához */
.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
}

/* Kedvencek menü kiemelése */
.nav-favorites {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin: 0 5px;
}

.nav-favorites .nav-link {
    color: #fff !important;
}

/* Mobil nézetben középre igazított hamburger menü ikon */
@media (max-width: 767.98px) {
    .navbar-toggler {
        margin: 0 auto;
    }
}

/* Admin badge stílus */
.badge.bg-danger.admin-badge {
    background-color: #dc3545 !important;
    font-weight: bold;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    margin-left: 0.25rem;
}

/* Munkaidő beosztás oldal stílusok */

/* Heti nézet stílusok */
.weekly-schedule {
    border-collapse: collapse;
    width: 100%;
}

.weekly-schedule th {
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px;
    font-size: 0.9rem;
}

.weekly-schedule .time-cell {
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    vertical-align: middle;
    background-color: #f8f9fa;
    width: 80px;
}

.weekly-schedule .schedule-cell {
    height: 30px;
    position: relative;
    border: 1px solid #dee2e6;
    padding: 0;
}

.weekly-schedule .schedule-cell:hover {
    background-color: rgba(0, 123, 255, 0.1);
    cursor: pointer;
}

.weekly-schedule .work-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100%;
    padding: 2px 5px;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    border-radius: 3px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.weekly-schedule .work-item:hover {
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.weekly-schedule .work-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weekly-schedule .work-client,
.weekly-schedule .work-time,
.weekly-schedule .work-location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
}

/* Havi nézet stílusok */
.monthly-schedule {
    border-collapse: collapse;
    width: 100%;
}

.monthly-schedule th {
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.monthly-schedule td {
    height: 120px;
    width: 14.28%;
    vertical-align: top;
    padding: 5px;
    position: relative;
    border: 1px solid #dee2e6;
}

.monthly-schedule .day-header {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: right;
}

.monthly-schedule .day-works {
    overflow-y: auto;
    max-height: 80px;
}

.monthly-schedule .work-item-month {
    margin-bottom: 3px;
    padding: 2px 5px;
    border-radius: 3px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.monthly-schedule .work-item-month:hover {
    opacity: 0.9;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.monthly-schedule .work-time-month {
    font-size: 0.7rem;
    display: inline-block;
    margin-right: 5px;
}

.monthly-schedule .work-title-month {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monthly-schedule .add-work-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.monthly-schedule .add-work-btn:hover {
    color: #0d6efd;
}

/* Munka kategória színek */
.bg-helyszini {
    background-color: #dc3545 !important; /* danger */
}

.bg-javitas {
    background-color: #fd7e14 !important; /* warning */
}

.bg-karbantartas {
    background-color: #198754 !important; /* success */
}

.bg-installacio {
    background-color: #0d6efd !important; /* primary */
}

.bg-tanacsadas {
    background-color: #0dcaf0 !important; /* info */
}

.bg-egyeb {
    background-color: #6c757d !important; /* secondary */
}

/* Responsivitás */
@media (max-width: 992px) {
    .monthly-schedule .day-works {
        max-height: 60px;
    }
    
    .monthly-schedule td {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .weekly-schedule .time-cell {
        width: 50px;
        font-size: 0.7rem;
    }
    
    .monthly-schedule td {
        height: 80px;
        padding: 2px;
    }
    
    .monthly-schedule .day-works {
        max-height: 50px;
    }
}

/* Kompakt fejléc stílusok - Hozzáadható a style.css fájlhoz */

/* Alap kompakt fejléc stílusok */
.navbar-compact {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-compact .navbar-collapse:not(.show) {
    display: none;
}

/* Menü gomb stílusok */
.menu-toggle-btn {
    cursor: pointer;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.menu-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.menu-toggle-btn i {
    font-size: 22px;
    transition: transform 0.3s;
}

/* Aktív állapot a menü gombnak */
.menu-toggle-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-toggle-btn.active i {
    transform: rotate(90deg);
}

/* Animált átmenetek a menünek */
.navbar-collapse {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #0d6efd; /* Ugyanaz a kék mint a navbar */
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
}

.navbar-collapse.show {
    max-height: 1000px;
    opacity: 1;
}

/* Stílusok a dropdown menükhöz */
.navbar-compact .dropdown-menu {
    border: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    border-radius: 6px;
}

/* Badge stílusok és animációk */
.badge-highlight {
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Kiemelés az aktív menüpontoknak */
.navbar-compact .nav-link.active {
    position: relative;
    font-weight: 600;
}

.navbar-compact .nav-link.active::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 2px;
}

/* Egyedi stílusok a menüpontoknak */
.navbar-compact .nav-link {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
}

.navbar-compact .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Mobilon más stílusok */
@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 0;
        transition: max-height 0.4s ease;
    }
    
    .navbar-collapse.show {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-compact .navbar-toggler {
        display: none;
    }
    
    .navbar-compact .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0.5rem;
    }
}

/* Nagyobb képernyőkön speciális stílusok */
@media (min-width: 992px) {
    .navbar-compact .navbar-nav {
        padding: 0.5rem 0;
    }
    
    /* Egyenletesen osztjuk el a menüpontokat */
    .navbar-compact .navbar-nav.me-auto {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Minden menüpont egységes szélességű */
    .navbar-compact .navbar-nav.me-auto .nav-item {
        min-width: 150px;
        text-align: center;
    }
}