/* Basic padding for buttons. */
.dc-button {
    padding: 4px;
    margin-left: 4px;
    margin-right: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Error intent - red background. */
.dc-intent-error {
    background-color: var(--color-red) !important;
}

/* Warn intent - orange background. */
.dc-intent-warn {
    background-color: var(--color-orange) !important;
}

/* "Info" intent - blue background. */
.dc-intent-info {
    background-color: var(--color-blue) !important;
}

/** "Success" intent - green background. */
.dc-intent-success {
    background-color: var(--color-green) !important;
}

/** Text boxes. */
.dc-textbox {
    padding: 4px;
    margin-left: 4px;
    margin-right: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Checkbox */
.dc-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 4px 0;
    font-size: 16px;
}

.dc-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Checkbox hover */
.dc-checkbox:hover {
    opacity: 0.8;
}

/* Checkbox focus */
.dc-checkbox input[type="checkbox"]:focus {
    outline: none;
    box-shadow: var(--shadow-s);
}

/* Checkbox disabled */
.dc-checkbox-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.dc-checkbox-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Basic styles for dc-slider */
.dc-slider {
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.3s;
}

.dc-switch.dc-switch-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Basic styles for dc-icon, make it vertical center */
.dc-icon {
    display: inline-flex;
    align-items: center;
}
