/* Notifications Center Styles */

.notifications-tab {
    padding: 20px 0;
}

.notification-item {
    background: var(--bg-secondary, #f5f5f5);
    border-left: 4px solid var(--primary-color, #3498db);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    flex: 1;
}

.notification-type {
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-type::before {
    content: '🔔';
    font-size: 16px;
}

.notification-details {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 8px 0;
    line-height: 1.4;
}

.notification-details strong {
    color: var(--text-primary, #333);
}

.notification-time {
    font-size: 12px;
    color: var(--text-tertiary, #999);
    margin-top: 8px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-approve, .btn-reject {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-approve {
    background-color: var(--success-color, #2ecc71);
    color: white;
}

.btn-approve:hover {
    background-color: var(--success-hover, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.btn-approve:active {
    transform: translateY(0);
}

.btn-reject {
    background-color: var(--error-color, #e74c3c);
    color: white;
}

.btn-reject:hover {
    background-color: var(--error-hover, #c0392b);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-reject:active {
    transform: translateY(0);
}

.btn-approve:disabled, .btn-reject:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.notification-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.notification-status.pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f39c12;
}

.notification-status.approved {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.notification-status.rejected {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.notification-status.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.notification-status.warning {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f39c12;
}

.notification-status.info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.notification-status.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #666);
}

.no-notifications-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 10px 0;
    font-size: 14px;
}

.notifications-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--error-color, #e74c3c);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .notification-item {
        background: var(--bg-secondary, #2a2a2a);
    }

    .notification-type {
        color: var(--text-primary, #f0f0f0);
    }

    .notification-details {
        color: var(--text-secondary, #b0b0b0);
    }

    .notification-details strong {
        color: var(--text-primary, #f0f0f0);
    }

    .notification-time {
        color: var(--text-tertiary, #808080);
    }

    .no-notifications {
        color: var(--text-secondary, #b0b0b0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .notification-item {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-actions {
        justify-content: space-between;
    }

    .btn-approve, .btn-reject {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
}

@media (max-width: 320px) {
    .notification-item {
        padding: 10px;
        gap: 10px;
    }

    .notification-type {
        font-size: 0.92rem;
    }

    .notification-details {
        font-size: 12px;
    }

    .btn-approve, .btn-reject {
        padding: 7px 8px;
        font-size: 12px;
    }
}

@media (min-width: 321px) and (max-width: 390px) {
    .notification-item {
        padding: 12px;
    }
}

@media (min-width: 391px) and (max-width: 768px) {
    .notification-item {
        padding: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .notification-item {
        padding: 15px 16px;
    }
}

@media (min-width: 1440px) {
    .notification-item {
        padding: 16px 18px;
    }

    .notification-details {
        font-size: 14px;
    }
}
