@import url('../../colorPalate.css');

/* Select Box Styles */
.new-tag-form-selectBox {
    width: 100%;
    height: 56px;
    padding: 10px 48px 10px 15px;
    border-radius: 12px;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-bluegray);
    appearance: none;
    -webkit-appearance: none;
    background: white url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 10L12 14L16 10' stroke='%232196F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") no-repeat right 16px center;
    background-size: 30px;
    cursor: pointer;
}

/* Focus effect for select box */
.new-tag-form-selectBox:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

/* Disabled state for select box */
.new-tag-form-selectBox:disabled {
    background: var(--bg-disabled) url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 10L12 14L16 10' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") no-repeat right 16px center;
    background-size: 30px;
    color: grey;
    cursor: not-allowed;
    pointer-events: none;
}

/* Radio Group Styles */
.new-tag-form-radioGroup-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0;
}

.new-tag-form-radioGroup {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer !important;
    padding-left: 40px;
    user-select: none;
    color: var(--text-secondary);
    font-weight: 500;
}

.new-tag-form-radioGroup input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.new-tag-form-radioGroup::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 3px solid var(--brand-primary);
    border-radius: 50%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    background: white;
}

.new-tag-form-radioGroup:has(input[type="radio"]:checked)::before {
    background-color: var(--brand-primary);
}

/* Custom inner circle */
.new-tag-form-radioGroup::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s ease;
}

/* Show inner circle when checked */
.new-tag-form-radioGroup:has(input[type="radio"]:checked)::after {
    background: white;
}

/* Disabled state for radio group */
.new-tag-form-radioGroup:has(input[type="radio"]:disabled) {
    color: grey;
    cursor: not-allowed;
    pointer-events: none;
}

.new-tag-form-radioGroup:has(input[type="radio"]:disabled)::before {
    border-color: var(--border-light);
    background-color: white;
}

.new-tag-form-radioGroup:has(input[type="radio"]:disabled:checked)::after {
    background: var(--border-light);
}

/* Checkbox Styles */
.new-tag-form-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer !important;
    user-select: none;
}

/* Hide default checkbox */
.new-tag-form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox design */
.new-tag-form-checkbox::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--brand-primary);
    border-radius: 3px;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Checked state */
.new-tag-form-checkbox:has(input[type="checkbox"]:checked)::before {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Checkmark */
.new-tag-form-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 5px;
    height: 7px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show checkmark when checked */
.new-tag-form-checkbox:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
}

/* Disabled state for checkbox */
.new-tag-form-checkbox:has(input[type="checkbox"]:disabled) {
    color: grey;
    cursor: not-allowed;
    pointer-events: none;
}

.new-tag-form-checkbox:has(input[type="checkbox"]:disabled)::before {
    background: var(--brand-content-bg);
    border-color: var(--border-light);
}