﻿.step-content-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.step-content-body {
    padding: 2rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .step-title i {
        font-size: 1.5rem;
    }

.info-banner {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

    .info-banner i {
        color: #2563eb;
        font-size: 1.25rem;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

    .info-banner strong {
        display: block;
        color: #1e40af;
        margin-bottom: 0.25rem;
    }

    .info-banner p {
        color: #1e40af;
        font-size: 0.875rem;
        margin: 0;
    }

.review-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.review-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .review-section-title i {
        color: #6b7280;
    }

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .btn-edit:hover {
        background-color: #eff6ff;
    }

.review-section-body {
    padding: 1.5rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.review-item-full {
    grid-column: 1 / -1;
}

.review-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.review-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.severity-alarm {
    background-color: #fee2e2;
    color: #991b1b;
}

.severity-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.severity-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-item {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.channel-email {
    background-color: #dbeafe;
    color: #1e40af;
}

.channel-sms {
    background-color: #d1fae5;
    color: #065f46;
}

.recipient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .recipient-list li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.375rem 0;
        font-size: 0.875rem;
        color: #374151;
    }

    .recipient-list i {
        color: #6b7280;
    }

.warning-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
    color: #92400e;
    font-size: 0.875rem;
}

    .warning-inline i {
        color: #d97706;
    }

.rules-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-summary-card {
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.rule-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rule-type-badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.rule-type-telemetry {
    background-color: #dbeafe;
    color: #1e40af;
}

.rule-type-geofence {
    background-color: #d1fae5;
    color: #065f46;
}

.rule-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.9375rem;
}

.rule-status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .rule-status-badge.active {
        background-color: #d1fae5;
        color: #065f46;
    }

    .rule-status-badge.inactive {
        background-color: #f3f4f6;
        color: #6b7280;
    }

.rule-summary-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.error-box {
    padding: 1rem 1.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #991b1b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

    .error-header i {
        font-size: 1.25rem;
    }

.error-box p {
    color: #991b1b;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.error-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: #991b1b;
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
}

    .btn-modern:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .btn-modern:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-modern-secondary {
    background-color: white;
    color: #374151;
    border-color: #d1d5db;
}

    .btn-modern-secondary:hover:not(:disabled) {
        background-color: #f9fafb;
    }

.btn-modern-success {
    background-color: #059669;
    color: white;
}

    .btn-modern-success:hover:not(:disabled) {
        background-color: #047857;
    }

.text-primary {
    color: #2563eb !important;
}

.mb-3 {
    margin-bottom: 1rem;
}
