/* Notifications CSS */
.notifications-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.notifications-header h2 {
    font-size: 1.5rem;
    color: #111827;
    margin: 0;
}

.notifications-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.btn-action:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notification-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notification-card.unread {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.notification-card.read {
    opacity: 0.8;
}

.notification-card.expanded {
    background: #fefefe;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.notification-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-type-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.notification-type-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.notification-type-badge.alert {
    background: #fee2e2;
    color: #991b1b;
}

.notification-type-badge.reminder {
    background: #e0e7ff;
    color: #3730a3;
}

.notification-controls {
    display: flex;
    gap: 0.5rem;
}

.notification-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.notification-controls button:hover {
    color: #111827;
}

.notification-controls .btn-delete:hover {
    color: #ef4444;
}

.notification-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.notification-preview {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.notification-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.notification-card.expanded .notification-content {
    max-height: 500px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.notification-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.notification-card.read .status-dot {
    background: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.125rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-card {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .notifications-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }
}

/* Custom Confirmation Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-modal.active {
    display: flex;
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.confirm-header i {
    font-size: 2rem;
    color: #ef4444;
}

.confirm-header h3 {
    font-size: 1.25rem;
    color: #111827;
    margin: 0;
}

.confirm-message {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-actions button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-confirm-cancel:hover {
    background: #e5e7eb;
}

.btn-confirm-delete {
    background: #ef4444;
    color: white;
}

.btn-confirm-delete:hover {
    background: #dc2626;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}