﻿.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-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.step-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    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-primary {
    background-color: #2563eb;
    color: white;
}

    .btn-modern-primary:hover {
        background-color: #1d4ed8;
    }

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

.btn-icon-danger {
    color: #dc2626;
}

    .btn-icon-danger:hover {
        background-color: #fef2f2;
    }

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

.rule-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.rule-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.rule-card-body {
    padding: 1.5rem;
}

.form-group-modern {
    margin-bottom: 0;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control-modern {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
}

    .form-control-modern:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .form-control-modern::placeholder {
        color: #9ca3af;
    }

select.form-control-modern {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.form-help-text {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.rule-status-toggle {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    transition: background-color 0.2s ease-in-out;
    flex-shrink: 0;
}

    .toggle-switch::after {
        content: '';
        position: absolute;
        top: 0.125rem;
        left: 0.125rem;
        width: 1.25rem;
        height: 1.25rem;
        background-color: white;
        border-radius: 9999px;
        transition: transform 0.2s ease-in-out;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }

.toggle-checkbox:checked + .toggle-switch {
    background-color: #2563eb;
}

    .toggle-checkbox:checked + .toggle-switch::after {
        transform: translateX(1.25rem);
    }

.toggle-checkbox:focus + .toggle-switch {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-text {
    display: flex;
    flex-direction: column;
}

.toggle-text-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.toggle-text-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.rule-id-badge {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

    .rule-id-badge small {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.25rem 0.625rem;
        background-color: #f3f4f6;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        color: #6b7280;
    }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.empty-state-subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

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