/* Styles specific to the notifications page */

/* Notification list */
.notification-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Unread notification */
.notification-item.unread-notification {
    position: relative;
}

.notification-item.unread-notification::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #0d6efd;
    border-radius: 50%;
}

/* Notification actions */
.notification-item .btn {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-item:hover .btn {
    opacity: 1;
}

/* Delete button animation */
.delete-notification {
    transition: all 0.2s;
}

.delete-notification:hover {
    background-color: #dc3545;
    color: white;
}

/* Subscription info styling */
.alert-success {
    border-left: 4px solid #198754;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

/* Premium Notification Styles */

/* Page title */
.page-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.title-icon {
    font-size: 1.75rem;
    color: #0d6efd;
    margin-right: 1rem;
}

/* Premium cards */
.premium-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Settings card */
.settings-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
}

.settings-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.settings-header h5 {
    margin: 0;
    font-weight: 600;
}

.settings-content {
    flex: 1;
}

.settings-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.settings-footer p {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
}

.active-badge {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.inactive-badge {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Settings groups */
.settings-group {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.settings-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Location info */
.location-info {
    display: flex;
    align-items: flex-start;
}

.location-map-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 8px;
    margin-right: 0.75rem;
}

.location-details {
    flex: 1;
    font-size: 0.9rem;
}

.loc-coordinates {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.loc-radius {
    color: #6c757d;
}

/* Magnitude info */
.magnitude-info {
    display: flex;
    align-items: flex-start;
}

.magnitude-badge-container {
    margin-right: 0.75rem;
}

.mini-magnitude-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

.magnitude-details {
    flex: 1;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 1rem;
}

.empty-image {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Settings actions */
.settings-actions {
    margin-top: 1rem;
}

/* Soft danger button */
.btn-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: none;
    transition: all 0.2s ease;
}

.btn-soft-danger:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Notifications card */
.notifications-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notifications-header h5 {
    margin: 0;
    font-weight: 600;
}

.notifications-content {
    flex: 1;
    min-height: 300px;
}

/* Empty notifications */
.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-notifications h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Notification item */
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
    position: relative;
}

.notification-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Notification item animation */
.notification-item.removing {
    animation: fadeOut 0.3s ease forwards;
}

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

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

/* Unread notification */
.notification-item.unread-notification {
    box-shadow: 0 2px 15px rgba(13, 110, 253, 0.15);
    border-left: 4px solid #0d6efd;
}

/* Notification content */
.notification-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

/* Notification magnitude */
.notification-magnitude {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notification-magnitude.high {
    background-color: rgba(220, 53, 69, 0.1);
}

.notification-magnitude.medium {
    background-color: rgba(255, 193, 7, 0.1);
}

.notification-magnitude.low {
    background-color: rgba(13, 110, 253, 0.1);
}

.magnitude-display {
    font-size: 1.125rem;
    font-weight: 700;
}

.notification-magnitude.high .magnitude-display {
    color: #dc3545;
}

.notification-magnitude.medium .magnitude-display {
    color: #ffc107;
}

.notification-magnitude.low .magnitude-display {
    color: #0d6efd;
}

/* Notification details */
.notification-details {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    font-size: 0.95rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Notification info */
.notification-info {
    display: flex;
    flex-wrap: wrap;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #495057;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.info-badge i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Notification actions */
.notification-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #495057;
    border: none;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background-color: #e9ecef;
}

.btn-action.show-map:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-action.delete-notification:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .notification-content {
        flex-direction: column;
    }
    
    .notification-magnitude {
        margin-bottom: 0.75rem;
    }
    
    .notification-actions {
        margin-top: 1rem;
        margin-left: 0;
    }
    
    .notification-header {
        flex-direction: column;
    }
    
    .notification-time {
        margin-left: 0;
        margin-top: 0.25rem;
    }
} 