/* Display Conditions Modal Styles */
.aafe-conditions-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aafe-conditions-modal {
    background: #fff;
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.aafe-conditions-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.aafe-conditions-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.aafe-conditions-modal-close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
}

.aafe-conditions-modal-close:hover {
    color: #f00;
}

.aafe-conditions-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    background: #f5f5f5;
}

.aafe-condition-group {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.aafe-condition-group-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.aafe-remove-group {
    color: #d32f2f;
    cursor: pointer;
    font-size: 12px;
}

.aafe-condition-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.aafe-condition-row select, .aafe-condition-row input {
    padding: 0 15px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    outline: none;
}

.aafe-condition-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px;
}

.aafe-condition-row select:focus, .aafe-condition-row input:focus {
    border-color: #39b54a;
}

.aafe-remove-condition {
    cursor: pointer;
    color: #888;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

.aafe-remove-condition:hover {
    color: #d32f2f;
    background: #fff;
    border-color: #d32f2f;
}

.aafe-add-condition {
    background: #fdfdfd;
    border: 1px dashed #ccc;
    color: #666;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.aafe-add-condition:hover {
    background: #f5f5f5;
    border-color: #888;
    color: #333;
}

.aafe-add-group-wrapper {
    text-align: center;
    margin-top: 20px;
}

.aafe-add-group {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.aafe-add-group:hover {
    background: #444;
}

.aafe-conditions-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fcfcfc;
}

.aafe-save-conditions {
    background: #39b54a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.aafe-save-conditions:hover {
    background: #2e933c;
}
