/**
 * Alert System Styles
 */

/* Alert Container */
.dashboard-alerts {
    margin-bottom: 1.5rem;
}

/* Alert Styling */
.dashboard-alerts .alert {
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-alerts .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
}

.dashboard-alerts .alert-danger::before {
    background-color: #dc3545;
}

.dashboard-alerts .alert-info::before {
    background-color: #0dcaf0;
}

.dashboard-alerts .alert-secondary::before {
    background-color: #6c757d;
}

/* Alert Read Animation */
.dashboard-alerts .alert-read {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Alert Badge */
.alert-badge {
    position: relative;
    top: -2px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Alert List Item */
.list-group-item.unread-alert {
    border-left: 4px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Alert Priority Badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Alert Statistics Cards */
.stat-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-card-body {
    padding: 1.25rem;
    display: flex;
    align-items: center;
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #fff;
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Alert Management Cards */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alert Filter Buttons */
.filter-btn.active {
    font-weight: 500;
}

/* Alert Form Controls */
.form-check-label small {
    font-size: 0.75rem;
}

/* Alert Modal */
.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Alert Table */
.table th {
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Alert Progress Bars */
.progress {
    height: 1.25rem;
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

/* Alert Charts */
canvas {
    max-width: 100%;
}
