/**
 * Notifications System Styles
 */

/* Notification Button */
.twm-notifications-trigger {
    position: relative;
    margin-left: 16px;
}

.twm-notif-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--dark, #222);
}

.twm-notif-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.twm-notif-btn i {
    font-size: 20px;
}

/* Badge Counter */
.twm-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #FF385C;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

/* Dropdown */
.twm-notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twm-notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9F9F9;
}

.twm-notif-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.twm-mark-all-read {
    background: none;
    border: none;
    color: #FF385C;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.twm-mark-all-read:hover {
    background: rgba(255, 56, 92, 0.1);
}

/* Notification List */
.twm-notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.twm-notif-loading {
    padding: 40px;
    text-align: center;
    color: #999;
}

.twm-notif-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.twm-notif-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Notification Item */
.twm-notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.twm-notif-item:hover {
    background: #F9F9F9;
}

.twm-notif-item.unread {
    background: #FFF4F6;
}

.twm-notif-item.unread:hover {
    background: #FFEEF2;
}

.twm-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.twm-notif-icon.new_booking {
    background: #E3F2FD;
    color: #1976D2;
}

.twm-notif-icon.booking_confirmed {
    background: #E8F5E9;
    color: #388E3C;
}

.twm-notif-icon.booking_cancelled {
    background: #FFEBEE;
    color: #D32F2F;
}

.twm-notif-content {
    flex: 1;
}

.twm-notif-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.twm-notif-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.twm-notif-time {
    font-size: 11px;
    color: #999;
}

.twm-notif-item.unread .twm-notif-title {
    color: #FF385C;
}

/* Unread dot */
.twm-notif-item.unread::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #FF385C;
    border-radius: 50%;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 768px) {
    .twm-notifications-dropdown {
        width: 320px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .twm-notifications-dropdown {
        width: calc(100vw - 40px);
        right: -100px;
    }
}
