/* Standard form input styles for all pages */

/* Form groups and labels */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Input and select styles */
.form-input {
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.813rem;
    background: white;
    transition: all 0.2s ease;
    height: 32px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Filter control - no width 100% to allow inline display */
.filter-control {
    padding: 0.4rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.813rem;
    background: white;
    transition: all 0.2s ease;
    height: 32px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Select specific styles - aligned with OmniCloudCX */
.form-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.813rem;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    height: 32px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
}

/* Select filter control - no width 100% to allow inline display */
select.filter-control {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.813rem;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    height: 32px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
}

/* Focus state */
.form-input:focus,
.form-select:focus,
.filter-control:focus,
select.filter-control:focus {
    outline: none;
    border-color: #549FD5;
    box-shadow: 0 0 0 3px rgba(84, 159, 213, 0.1);
}

/* Hover state */
.form-input:hover,
.form-select:hover,
.filter-control:hover,
select.filter-control:hover {
    border-color: #9ca3af;
}

/* Disabled state */
.form-input:disabled,
.form-select:disabled,
.filter-control:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Read-only state */
.form-input[readonly],
.filter-control[readonly] {
    background-color: #f3f4f6;
    cursor: default;
}

/* Error state */
.form-input.is-error,
.filter-control.is-error {
    border-color: #CA150C;
}

.form-input.is-error:focus,
.filter-control.is-error:focus {
    box-shadow: 0 0 0 3px rgba(202, 21, 12, 0.1);
}

/* Success state */
.form-input.is-success,
.filter-control.is-success {
    border-color: #0A7637;
}

.form-input.is-success:focus,
.filter-control.is-success:focus {
    box-shadow: 0 0 0 3px rgba(10, 118, 55, 0.1);
}

/* Number input specific */
input[type="number"].form-input,
input[type="number"].filter-control {
    -moz-appearance: textfield;
}

input[type="number"].form-input::-webkit-outer-spin-button,
input[type="number"].form-input::-webkit-inner-spin-button,
input[type="number"].filter-control::-webkit-outer-spin-button,
input[type="number"].filter-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Date input specific */
input[type="date"].form-input,
input[type="date"].filter-control {
    min-height: 32px;
}

/* Placeholder styling */
.form-input::placeholder,
.filter-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Small variant */
.form-input-sm,
.filter-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: 28px;
}

/* Large variant */
.form-input-lg,
.filter-control-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    height: 38px;
}

/* Help text */
.form-help {
    font-size: 0.688rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Error message */
.form-error {
    font-size: 0.688rem;
    color: #CA150C;
    margin-top: 0.25rem;
}

/* Select wrapper for proper arrow positioning */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
}

/* Filter section specific styles - removed conflicting rules */
/* Styles are now handled in each template to avoid conflicts */