/* Profil dropdown menü stílusok */
.profile-dropdown-wrapper {
    position: relative;
}

.card-header {
    display: flex;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.profile-userpic {
    margin:auto;
    text-align: center;
}

.profile-userpic img {
    margin:auto;
}


.profile-trigger {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 25px;
    background: #2c7a2c;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 180px;
}

.profile-trigger:hover {
    background: #256925;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 122, 44, 0.3);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.profile-role {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-role i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.profile-dropdown-wrapper.active .profile-role i {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-dropdown-wrapper.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    background: linear-gradient(135deg, #2c7a2c 0%, #256925 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-info {
    flex: 1;
    color: white;
}

.profile-header-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.profile-header-email {
    font-size: 13px;
    opacity: 0.8;
}

.profile-menu-items {
    padding: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
}

.profile-menu-item:hover,
.profile-menu-item:focus,
.profile-menu-item:visited {
    text-decoration: none !important;
}

.profile-menu-item:hover {
    background: #f8f9fa;
    color: #2c7a2c;
}

.profile-menu-item:active {
    transform: scale(0.98);
}

.menu-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    transition: all 0.2s ease;
}

.profile-menu-item:hover .menu-item-icon {
    background: #2c7a2c;
    color: white;
}

.menu-item-icon i {
    font-size: 16px;
}

.menu-item-content {
    flex: 1;
}

.menu-item-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.menu-item-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}

.profile-menu-item:hover .menu-item-desc {
    color: #2c7a2c;
}

.profile-menu-footer {
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #fff5f5;
    color: #dc3545;
}

.logout-item:hover .menu-item-icon {
    background: #dc3545;
    color: white;
}

.logout-item:hover .menu-item-desc {
    color: #dc3545;
}

/* Mobil menü stílusok */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    background: #2c7a2c;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-profile-section {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-profile-guest,
.mobile-profile-user {
    padding: 20px;
    display: flex;
    align-items: center;
}

.mobile-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 3px solid #f0f0f0;
}

.mobile-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-profile-info {
    flex: 1;
}

.mobile-profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mobile-profile-email {
    font-size: 14px;
    color: #666;
}

.mobile-profile-desc {
    font-size: 14px;
    color: #666;
}

.mobile-login-btn,
.mobile-register-btn {
    color: #2c7a2c;
    text-decoration: none;
    font-weight: 500;
}

.mobile-login-btn:hover,
.mobile-register-btn:hover {
    text-decoration: underline;
}

.mobile-profile-menu {
    padding: 0 20px 20px;
}

.mobile-nav-section {
    padding: 20px;
}

.mobile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

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

.mobile-menu-item:hover {
    color: #2c7a2c;
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 15px 20px;
    border-radius: 8px;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
    color: #2c7a2c;
}

.mobile-menu-item.logout-item {
    color: #dc3545;
}

.mobile-menu-item.logout-item:hover {
    color: #dc3545;
    background: #fff5f5;
}

.mobile-menu-item.logout-item i {
    color: #dc3545;
}

/* Reszponzív design */
@media (max-width: 768px) {
    /* Desktop profil elrejtése mobilon */
    .desktop-profile {
        display: none !important;
    }

    /* Mobil hamburger ikon megjelenítése */
    .mobile-toggle {
        display: block !important;
    }

    .mobile-menu-container {
        width: 280px;
    }

    .profile-trigger {
        min-width: 140px;
        padding: 6px 10px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .profile-name {
        font-size: 13px;
    }

    .profile-menu {
        right: -20px;
        min-width: 280px;
    }

    .profile-menu-header {
        padding: 16px;
    }

    .profile-header-avatar {
        width: 50px;
        height: 50px;
        margin-right: 14px;
    }

    .profile-header-name {
        font-size: 14px;
    }

    .profile-header-email {
        font-size: 12px;
    }

    .profile-menu-item {
        padding: 14px 16px;
    }

    .menu-item-icon {
        width: 38px;
        height: 38px;
        margin-right: 12px;
    }

    .menu-item-icon i {
        font-size: 14px;
    }

    .menu-item-title {
        font-size: 14px;
    }

    .menu-item-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        width: 260px;
    }

    .mobile-menu-header {
        padding: 16px;
    }

    .mobile-menu-title {
        font-size: 16px;
    }

    .mobile-profile-guest,
    .mobile-profile-user {
        padding: 16px;
    }

    .mobile-profile-avatar {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .mobile-profile-name {
        font-size: 16px;
    }

    .mobile-profile-email {
        font-size: 13px;
    }

    .mobile-profile-menu,
    .mobile-nav-section {
        padding: 16px;
    }

    .mobile-menu-item {
        padding: 12px 0;
    }

    .mobile-menu-item:hover {
        margin: 0 -16px;
        padding: 12px 16px;
    }

    .profile-menu {
        right: -40px;
        min-width: 260px;
        left: 10px;
        right: 10px;
    }

    .profile-menu-item {
        padding: 12px 14px;
    }

    .menu-item-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
}

/* Desktop: Mobil menü elrejtése, desktop profil megjelenítése */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-toggle {
        display: none !important;
    }

    .desktop-profile {
        display: block !important;
    }
}
