/* Notification System Styles */

/* Toast Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    margin-bottom: 10px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 138, 61, 0.14), transparent 36%),
        radial-gradient(circle at 90% 10%, rgba(157, 78, 221, 0.14), transparent 38%),
        rgba(7, 10, 17, 0.98);
    border: 1px solid rgba(255, 138, 61, 0.52);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 138, 61, 0.24);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.notification-trade {
    border-color: rgba(157, 78, 221, 0.58);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 20px rgba(157, 78, 221, 0.30);
}

.notification-toast.notification-guild {
    border-color: rgba(192, 132, 252, 0.56);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 20px rgba(192, 132, 252, 0.28);
}

.notification-toast.notification-success {
    border-color: rgba(255, 179, 95, 0.62);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 138, 61, 0.28);
}

.notification-toast.notification-warning {
    border-color: rgba(245, 200, 75, 0.62);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 22px rgba(245, 200, 75, 0.26);
}

.notification-toast.notification-error {
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 22px rgba(244, 67, 54, 0.28);
}

.notification-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.notification-message {
    font-size: 13px;
    color: rgba(255, 247, 237, 0.72);
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #ffb15f;
}

/* Notification Bell */
#notification-bell-placeholder {
    display: inline-block;
    position: relative;
    z-index: 32000;
    overflow: visible;
}

.notification-bell-container {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: 0;
    z-index: 32000;
    overflow: visible;
}

.notification-bell {
    background:
        linear-gradient(145deg, rgba(255, 138, 61, 0.14), rgba(157, 78, 221, 0.08)),
        rgba(7, 10, 17, 0.84);
    border: 1px solid rgba(255, 138, 61, 0.42);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.notification-bell:hover {
    border-color: #ffb15f;
    box-shadow: 0 0 18px rgba(255, 138, 61, 0.34), 0 0 26px rgba(157, 78, 221, 0.20);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4d6d, #ff8a3d);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 32002;
    pointer-events: none;
    border: 2px solid rgba(255, 236, 217, 0.96);
}

/* Notification Panel */
.notification-panel {
    position: absolute !important;
    top: 50px;
    right: 0;
    width: 400px;
    max-width: 90vw;
    max-height: 600px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 138, 61, 0.14), transparent 36%),
        radial-gradient(circle at 88% 10%, rgba(157, 78, 221, 0.14), transparent 38%),
        rgba(7, 10, 17, 0.98);
    border: 1px solid rgba(255, 138, 61, 0.48);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58), 0 0 34px rgba(157, 78, 221, 0.18);
    display: none !important;
    visibility: hidden !important;
    flex-direction: column;
    z-index: 32001;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.notification-panel.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
    pointer-events: auto;
    animation: slideDown 0.3s ease;
}

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

.customer-nav .notification-panel {
    top: 92px !important;
}
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 138, 61, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ffb15f;
}

.notification-panel-actions {
    display: flex;
    gap: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: #ffb15f;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #fff7ed;
    text-decoration: underline;
}

.notification-list {
    overflow-y: auto;
    max-height: 500px;
    padding: 10px 0;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.notification-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 138, 61, 0.72), rgba(157, 78, 221, 0.66));
    border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 177, 95, 0.88), rgba(192, 132, 252, 0.82));
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 138, 61, 0.10);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(255, 138, 61, 0.12), rgba(157, 78, 221, 0.06));
    border-left-color: #ff8a3d;
}

.notification-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.notification-item-message {
    font-size: 13px;
    color: rgba(255, 247, 237, 0.72);
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-item-time {
    font-size: 11px;
    color: rgba(192, 132, 252, 0.82);
}

.notification-item-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff8a3d;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 138, 61, 0.72);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .notification-toast {
        min-width: auto;
        max-width: none;
    }

    .notification-panel {
        width: calc(100vw - 20px);
        right: -10px;
    }
}
