body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert {
    border-radius: 8px;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 90vw;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast i {
    font-size: 1.25rem;
}

.toast-success i {
    color: var(--success);
}

.toast-error i {
    color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rule-view {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.rule-view pre {
    max-height: 300px;
    overflow-y: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .condition-inputs {
        flex-direction: column;
    }

    .condition-inputs > div {
        width: 100% !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    #toast-container {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    .toast {
        width: 100%;
    }

    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
} 