﻿.rules-container {
    padding: 2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}



.incidentRuleSet-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    border: 1px solid #e9ecef;
}

.incidentRuleSet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.incident-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.incident-badge.alarm {
    background-color: #dc3545;
}

.incident-badge.warning {
    background-color: #ffc107;
    color: #212529;
}

.incident-badge.info {
    background-color: #17a2b8;
}

.incidentRuleSet-card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.incidentRuleSet-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.incidentRuleSet-card:hover .incidentRuleSet-info {
    justify-content: flex-start;
}

.incidentRuleSet-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.incidentRuleSet-card:hover .incidentRuleSet-name {
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: 0.75rem;
}

.incidentRuleSet-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.incidentRuleSet-card:hover .incidentRuleSet-description {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
}