/* Header styles for authenticated users */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* User Balance Display */
.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 16px;
    color: white;
    font-weight: 500;
    font-size: 13px;
}

.user-balance i {
    color: #ffd700;
    font-size: 14px;
}

.balance-amount {
    font-weight: 600;
}

/* Add Listing Button */
.btn-add-listing {
    background: linear-gradient(135deg, var(--camo-medium) 0%, var(--camo-dark) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-add-listing:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-add-listing i {
    font-size: 14px;
}

/* Small Topup Button */
.btn-topup-small {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-topup-small:hover {
    background: linear-gradient(135deg, #218838 0%, #155724 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-topup-small i {
    font-size: 14px;
}

/* Admin Panel Button */
.btn-admin-panel {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-panel:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-admin-panel i {
    font-size: 14px;
}

/* Update login button with icon */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login i,
.btn-topup i {
    font-size: 14px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px 6px 6px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.user-menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--camo-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-button i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.user-menu-button.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Arrow */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--camo-medium) 100%);
    border-radius: 8px 8px 0 0;
    color: white;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.dropdown-avatar:hover .dropdown-avatar-overlay {
    opacity: 1;
}

.dropdown-avatar-overlay i {
    color: white;
    font-size: 16px;
}

.dropdown-username {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.dropdown-email {
    font-size: 13px;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(74, 93, 49, 0.1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-green);
}

.dropdown-item span {
    flex: 1;
}

.dropdown-balance {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 14px;
}

.dropdown-logout {
    color: #dc3545;
}

.dropdown-logout i {
    color: #dc3545;
}

.dropdown-logout:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .user-balance {
        display: none; /* Скрываем на мобильных, баланс виден в dropdown */
    }

    .user-name {
        max-width: 80px;
    }

    .btn-add-listing {
        padding: 8px 12px;
    }

    .btn-add-listing span {
        display: none; /* Показываем только иконку */
    }

    .btn-topup-small {
        padding: 8px 12px;
    }

    .btn-topup-small span {
        display: none; /* Показываем только иконку */
    }

    .user-dropdown {
        min-width: 260px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }

    .btn-add-listing,
    .btn-topup-small {
        padding: 8px 10px;
        font-size: 13px;
    }

    .user-menu-button {
        padding: 6px 8px 6px 6px;
        gap: 6px;
    }

    .user-name {
        display: none; /* Показываем только аватар и стрелку */
    }
}

/* Logout Modal */
.logout-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: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-modal-overlay.active {
    opacity: 1;
}

.logout-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.logout-modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-modal-header i {
    font-size: 48px;
    color: white;
}

.logout-modal-body {
    padding: 24px;
    text-align: center;
}

.logout-modal-body h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--text-dark);
}

.logout-modal-body p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.logout-modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.logout-modal-footer button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #dee2e6;
}

.btn-cancel:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.btn-confirm-logout {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-confirm-logout:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .logout-modal {
        max-width: 340px;
    }
    
    .logout-modal-header {
        padding: 20px;
    }
    
    .logout-modal-header i {
        font-size: 40px;
    }
    
    .logout-modal-body {
        padding: 20px;
    }
    
    .logout-modal-body h3 {
        font-size: 18px;
    }
    
    .logout-modal-footer {
        flex-direction: column;
    }
    
    .logout-modal-footer button {
        width: 100%;
    }
}

/* ============================================ */
/* TRANSACTIONS MODAL */
/* ============================================ */

.transactions-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.transactions-modal {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.transactions-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    border-radius: 12px 12px 0 0;
}

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

.transactions-modal-header h3 i {
    font-size: 22px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.transactions-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 160px);
}

.transactions-modal-body::-webkit-scrollbar {
    width: 8px;
}

.transactions-modal-body::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.transactions-modal-body::-webkit-scrollbar-thumb {
    background: var(--camo-medium);
    border-radius: 4px;
}

.transactions-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

.no-transactions {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-transactions i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-transactions p {
    font-size: 18px;
    margin: 0;
}

.transaction-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.transaction-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transaction-item:last-child {
    margin-bottom: 0;
}

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

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.transaction-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.transaction-detail i {
    color: var(--primary-green);
    width: 16px;
    text-align: center;
}

.transactions-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.btn-close-modal {
    background: linear-gradient(135deg, var(--camo-medium), var(--camo-dark));
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-close-modal:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .transactions-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .transactions-modal-header {
        padding: 15px 20px;
    }
    
    .transactions-modal-header h3 {
        font-size: 18px;
    }
    
    .transactions-modal-body {
        padding: 15px;
    }
    
    .transaction-amount {
        font-size: 20px;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================ */
/* NOTIFICATIONS BADGE & MODAL */
/* ============================================ */

.notification-badge,
.messages-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    animation: pulse-badge 2s infinite;
}

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

.dropdown-item {
    position: relative;
}

.notifications-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.notifications-modal-overlay.active {
    opacity: 1;
}

.notifications-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 0 3px var(--camo-medium);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notifications-modal-overlay.active .notifications-modal {
    transform: translateY(0) scale(1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notifications-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 25%, 
        var(--primary-green) 50%, 
        var(--camo-medium) 75%, 
        var(--camo-dark) 100%);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notifications-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 25%, 
        var(--primary-green) 50%, 
        var(--camo-medium) 75%, 
        var(--camo-dark) 100%);
    z-index: 1;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.notifications-modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, 
        #2d5016 0%, 
        var(--primary-green) 50%,
        #1a3d0a 100%);
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.notifications-modal-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 50%, 
        var(--camo-dark) 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.notifications-modal-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 50%, 
        var(--camo-dark) 100%);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.notifications-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.3px;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mark-all-read {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a3d0a !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-mark-all-read i {
    color: #1a3d0a !important;
    font-size: 14px;
}

.btn-mark-all-read:hover {
    background: white !important;
    border-color: white !important;
    color: #0f2605 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-mark-all-read:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.notifications-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notifications-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notifications-close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.notifications-modal-body {
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
    position: relative;
    background: #fafbfc;
}

.notifications-modal-body::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 50%, 
        var(--camo-dark) 100%);
    z-index: 1;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.notifications-modal-body::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, 
        var(--camo-dark) 0%, 
        var(--camo-medium) 50%, 
        var(--camo-dark) 100%);
    z-index: 1;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
.notifications-modal-body::-webkit-scrollbar {
    width: 8px;
}

.notifications-modal-body::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.notifications-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--camo-medium), var(--camo-dark));
    border-radius: 4px;
}

.notifications-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--camo-dark), var(--camo-medium));
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px 18px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: 0 5px 4px 5px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.notification-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notification-item.unread {
    background: linear-gradient(90deg, 
        rgba(45, 80, 22, 0.12) 0%, 
        rgba(76, 175, 80, 0.06) 100%);
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.15);
}

.notification-item.unread:hover {
    background: linear-gradient(90deg, 
        rgba(45, 80, 22, 0.18) 0%, 
        rgba(76, 175, 80, 0.1) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.25);
}

.notification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, 
        #2d5016 0%, 
        var(--primary-green) 50%,
        #1a3d0a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-item:hover .notification-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.4);
}

.notification-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.notification-message {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 6px;
    font-weight: 500;
}

.notification-message .username {
    color: #2d5016;
    font-weight: 700;
    font-size: 15px;
}

.notification-message .topic-title {
    color: #4b5563;
    font-style: italic;
    font-weight: 500;
}

.notification-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.notification-unread-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2d5016;
    flex-shrink: 0;
    margin-top: 8px;
    box-shadow: 
        0 0 0 3px rgba(45, 80, 22, 0.2),
        0 2px 8px rgba(45, 80, 22, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.no-notifications {
    text-align: center;
    padding: 80px 32px;
    color: #6b7280;
    margin: 0 5px;
}

.no-notifications i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.2;
    background: linear-gradient(135deg, var(--primary-green), var(--camo-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-notifications p {
    font-size: 17px;
    margin: 0;
    font-weight: 500;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-modal-overlay {
        padding: 10px;
    }

    .notifications-modal {
        width: 100%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .notifications-modal-header {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        border-radius: 20px 20px 0 0;
    }

    .notifications-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-mark-all-read {
        font-size: 12px;
        padding: 8px 14px;
    }

    .notifications-close-btn {
        width: 36px;
        height: 36px;
    }

    .notification-item {
        padding: 16px 20px 16px 24px;
        margin: 0 3px 4px 3px;
        border-radius: 10px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }

    .notification-message {
        font-size: 14px;
    }

    .notification-date {
        font-size: 11px;
    }

    .no-notifications {
        padding: 60px 24px;
    }

    .no-notifications i {
        font-size: 56px;
    }
}
