/* ==========================================
   SYSTEM POWIADOMIEŃ - STYLE
   ========================================== */

/* Ważne - pozycjonowanie dla navbar */
.nav-links {
    position: relative;
}

/* NOTIFICATION ICON */
.notification-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-icon:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.05);
}

.notification-icon .bell-icon {
    font-size: 1.2rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--dark);
    z-index: 10;
}

/* DROPDOWN - pod ikoną */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 380px;
    max-width: 90vw;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #4ecdc4;
    z-index: 9999;
    overflow: hidden;
}

/* Strzałka - wskazuje na ikonę */
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1a1a2e;
}

.notification-dropdown.show {
    display: block;
    animation: slideIn 0.2s ease;
}

.notification-header {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #4ecdc4;
}

.notification-header .mark-all-read {
    font-size: 0.7rem;
    color: #888;
    cursor: pointer;
    text-decoration: none;
}

.notification-header .mark-all-read:hover {
    color: #4ecdc4;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.notification-item:hover {
    background: rgba(78, 205, 196, 0.1);
}

.notification-item.unread {
    background: rgba(78, 205, 196, 0.05);
    border-left: 3px solid #4ecdc4;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 4px;
}

.notification-item .notification-message {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 0.65rem;
    color: #666;
}

.notification-item .delete-notification {
    float: right;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .delete-notification {
    opacity: 1;
}

.notification-item .delete-notification:hover {
    color: #ff4444;
}

.empty-notifications {
    padding: 30px;
    text-align: center;
    color: #888;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.notification-footer a {
    font-size: 0.8rem;
    color: #4ecdc4;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Animacja */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Strona główna powiadomień */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
}

.notification-item-full {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.notification-item-full:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateX(5px);
}

.notification-item-full.unread {
    border-left-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.05);
}

.notification-title-full {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    margin-bottom: 8px;
}

.notification-message-full {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.notification-time-full {
    font-size: 0.7rem;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.pagination a:hover {
    background: #4ecdc4;
    color: #1a1a2e;
}

.pagination .current {
    background: #4ecdc4;
    color: #1a1a2e;
}

.delete-all-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
}

.delete-all-btn:hover {
    background: rgba(244, 67, 54, 0.4);
}