﻿
.search-filter {
    width:90%;
    padding: 10px 14px;
    background-color: var(--background);
    color: var(--foreground);
    border: 1px solid var(--foreground);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit; 
}

    .search-filter:focus {
        outline: none;
    }

.btn-group-custom {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 4px;
}

.text-muted-small {
    font-size: 0.875rem;
    color: #6c757d;
}
 
.required {
    color: #dc3545;
    margin-left: 2px;
}

input[type="text"],
input[type="number"],
input[type="email"],
textarea,
select {
    padding: 10px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="email"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: #007bff;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

    .input-wrapper input {
        flex: 1;
    }

.input-um {
    position: relative;
}

    .input-um::after { 
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%); 
        pointer-events: none;
        font-weight: 500;
    }

    .input-um input {
        padding-right: 30px;
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

    .checkbox-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #007bff;
}

    input:checked + .slider:before {
        transform: translateX(22px);
    }

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: flex-end;
}

button {
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    flex: 1;
    max-width: 150px;
}

    .btn-primary:hover {
        background-color: #0056b3;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    }

    .btn-primary:active {
        background-color: #004085;
    }

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
    flex: 1;
    max-width: 150px;
}

    .btn-secondary:hover {
        background-color: #dee2e6;
    }

    .btn-secondary:active {
        background-color: #d3d9df;
    }
